fix(multiselectcheckbox): remove export & imports
This commit is contained in:
committed by
GitHub
parent
d424daf6cb
commit
f5ea9d6c66
@ -7,8 +7,6 @@ Initially, all the items in the `options` array only have label ( and / or other
|
|||||||
An `onChange` prop can be passed to the `MultiCheckbox` component to get the updated list on every change event within the list.
|
An `onChange` prop can be passed to the `MultiCheckbox` component to get the updated list on every change event within the list.
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import React from 'react';
|
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
listContainer: {
|
listContainer: {
|
||||||
listStyle: 'none',
|
listStyle: 'none',
|
||||||
@ -20,7 +18,7 @@ const style = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default function MultiselectCheckbox ({ options, onChange }) {
|
function MultiselectCheckbox ({ options, onChange }) {
|
||||||
const [data, setData] = React.useState(options);
|
const [data, setData] = React.useState(options);
|
||||||
|
|
||||||
function toggle (item) {
|
function toggle (item) {
|
||||||
|
|||||||
Reference in New Issue
Block a user