mirror of
https://github.com/zhigang1992/react.git
synced 2026-02-10 22:45:11 +08:00
45 lines
997 B
Plaintext
45 lines
997 B
Plaintext
import { Layout, Playground, Attributes } from 'lib/components'
|
|
import { Spinner, Spacer } from 'components'
|
|
|
|
export const meta = {
|
|
title: 'Spinner',
|
|
description: 'tenotext',
|
|
}
|
|
|
|
## Spinner
|
|
|
|
Indicate an action running in the background.
|
|
|
|
<Playground
|
|
scope={{ Spinner }}
|
|
code={`
|
|
<Spinner />
|
|
`} />
|
|
|
|
<Playground
|
|
title="Size"
|
|
scope={{ Spinner, Spacer }}
|
|
code={`
|
|
<>
|
|
<Spinner size="mini" />
|
|
<Spacer y={.5} />
|
|
<Spinner size="small" />
|
|
<Spacer y={.5} />
|
|
<Spinner size="medium" />
|
|
<Spacer y={.5} />
|
|
<Spinner size="large" />
|
|
</>
|
|
`} />
|
|
|
|
<Attributes>
|
|
<Attributes.Title>Spinner.Props</Attributes.Title>
|
|
|
|
| Attribute | Description | Type | Accepted values | Default
|
|
| ---------- | ---------- | ---- | -------------- | ------ |
|
|
| **size** | spinner size | `NormalSizes` | `'mini', 'small', 'medium', 'large'` | `medium` |
|
|
| ... | native props | `HTMLAttributes` | `'id', 'className', ...` | - |
|
|
|
|
</Attributes>
|
|
|
|
export default ({ children }) => <Layout meta={meta}>{children}</Layout>
|