Skip to content

Commit

Permalink
Refactor SelectButton - Basic Doc JS demo
Browse files Browse the repository at this point in the history
habubey committed May 25, 2023
1 parent c8ba93d commit 64903b4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/doc/selectbutton/basicdoc.js
Original file line number Diff line number Diff line change
@@ -19,9 +19,11 @@ export default function BasicDemo() {
const options = ['Off', 'On'];
const [value, setValue] = useState(options[0]);
<div className="card flex justify-content-center">
<SelectButton value={value} onChange={(e) => setValue(e.value)} options={options} />
</div>
return (
<div className="card flex justify-content-center">
<SelectButton value={value} onChange={(e) => setValue(e.value)} options={options} />
</div>
);
}
`,
typescript: `

0 comments on commit 64903b4

Please sign in to comment.