import { Layout, Playground, Attributes } from 'lib/components' import { Select, Spacer, Code } from 'components' export const meta = { title: 'select', description: 'select', } ## Select Display a dropdown list of items. { const handler = val => console.log(val) return ( ) } `} /> Option 1 Option 2 `} /> Option 1 Option 2 `} /> Option 1 Option 2 `} /> TypeScript JavaScript `} /> Select.Props | Attribute | Description | Type | Accepted values | Default | ---------- | ---------- | ---- | -------------- | ------ | | **initialValue** | selected value | `string` | - | - | | **placeholder** | placeholder string | `string` | - | - | | **size** | select component size | `NormalSizes` | `'mini', 'small', 'medium', 'large'` | `medium` | | **icon** | icon component | `ReactNode` | - | `SVG Component` | | **pure** | remove icon component | `boolean` | - | `false` | | **disabled** | disable current radio | `boolean` | - | `false` | | **onChange** | selected value | `(val: string) => void` | - | - | | ... | native props | `HTMLAttributes` | `'name', 'alt', 'className', ...` | - | Select.Option.Props | Attribute | Description | Type | Accepted values | Default | ---------- | ---------- | ---- | -------------- | ------ | | **value**(required) | unique ident value | `string` | - | - | | **disabled** | disable current option | `boolean` | - | `false` | | ... | native props | `HTMLAttributes` | `'name', 'id', 'className', ...` | - | export default ({ children }) => {children}