import { Layout, Playground, Attributes } from 'lib/components' import { Button, Spacer } from 'components' import Router from 'next/router' export const meta = { title: 'button', description: 'tenotext', } ## Button Used to trigger an operation. Action `} /> Action `} /> Action `} /> Shadow `} /> `} /> `} /> `} /> Button.Props | Attribute | Description | Type | Accepted values | Default | ---------- | ---------- | ---- | -------------- | ------ | | **type** | button type | `ButtonTypes` | `'default', 'secondary', 'success', 'warning', 'error', 'abort'` | `default` | | **size** | button size | `NormalSizes` | `'mini', 'small', 'medium', 'large'` | `medium` | | **ghost** | the opposite color | `boolean` | - | `false` | | **loading** | display loading indicator | `boolean` | - | `false` | | **shadow** | display shadow | `boolean` | - | `false` | | **auto** | autoscale width | `boolean` | - | `false` | | **effect** | display animation | `boolean` | - | `true` | | **disabled** | disable button | `boolean` | - | `false` | | **onClick** | click handler | `MouseEventHandler` | - | - | | ... | native props | `ButtonHTMLAttributes` | `'autoFocus', 'name', 'className', ...` | - | export default ({ children }) => {children}