import Select, { Option, OptionProps } from '.';
import React from 'react';
import CanvasContainer from '@techytools/ui/.storybook/components/CanvasContainer';
import CanvasStoryPadding from '@techytools/ui/.storybook/components/CanvasStoryPadding';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faUser } from '@fortawesome/free-solid-svg-icons';
import useShowStorybookCode from '@techytools/ui/hooks/useShowStorybookCode';
const style = {
margin: '0 0.875rem 0.875rem 0',
minWidth: '10rem',
width: '45%',
};
const CustomOptionChildren = (props) => (
);
const WithSuffixIcon = (props) => (
}
options={[
{
value: 'jack',
label: 'Jack',
},
{
value: 'lucy',
label: 'Lucy',
},
{
value: 'tom',
label: 'Tom',
},
]}
/>
);
const tags: OptionProps[] = [];
for (let i = 10; i < 36; i++) {
tags.push({
value: i.toString(36) + i,
label: i.toString(36) + i,
children: i.toString(36) + i,
});
}
const CommaSeparatedTags = (props) => (
);
const SelectMultiple = (props) => (
);
export default (props) => {
useShowStorybookCode();
return (
);
};
export const code = `
const CustomOptionChildren = (props) => (
);
const WithSuffixIcon = (props) => (
}
options={[
{
value: 'jack',
label: 'Jack',
},
{
value: 'lucy',
label: 'Lucy',
},
{
value: 'tom',
label: 'Tom',
},
]}
/>
);
const CommaSeparatedTags = (props) => (
);
const SelectMultiple = (props) => (
);
`;