Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Bui.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ class Bui extends PureComponent {
<Header type="h3">Radio Form</Header>
<div style={styles.componentContainer}>
<form>
<Input type="radio" name="radio" value="yes" checked /> Yes<br />
<Input type="radio" name="radio" value="no" /> No<br />
<Input type="radio" name="radio" value="maybe" /> Maybe<br />
<Input type="radio" name="unique" onChange={function() {}}>
{['yes', 'no', ['maybe', 'any value']]}
</Input>
</form>
<xmp style={styles.xmp}>{radioFormCode}</xmp>
</div>
Expand Down
9 changes: 5 additions & 4 deletions lib/constants/codeSnippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ export const loginFormCode = `import { Input } from '@bpanel/bpanel-ui';
export const radioFormCode = `import { Input } from '@bpanel/bpanel-ui';

<form>
<Input type="radio" name="radio" value="yes" checked /> Yes<br />
<Input type="radio" name="radio" value="no" /> No<br />
<Input type="radio" name="radio" value="maybe" /> Maybe<br />
</form>`;
<Input type="radio" name="radio" onChange={e => {e.target.value}}>
{['yes', 'no', ['maybe', 'any value']]}
</Input>
</form>
`;

export const fileUploadCode = `import { Input } from '@bpanel/bpanel-ui';

Expand Down