docs(button-group): add document for light types

docs: fix typo
This commit is contained in:
unix
2020-05-15 20:43:25 +08:00
parent 0e0a43720c
commit 9afeb156df
3 changed files with 16 additions and 4 deletions

View File

@@ -40,6 +40,11 @@ A set of related buttons.
<Button>Action1</Button>
<Button>Action2</Button>
</ButtonGroup>
<ButtonGroup type="success-light" size="small">
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</ButtonGroup>
</>
`} />
@@ -103,6 +108,7 @@ A set of related buttons.
```ts
type ButtonTypes = 'default' | 'secondary' | 'success' | 'warning' | 'error' | 'abort'
| 'secondary-light' | 'success-light' | 'warning-light' | 'error-light'
```
<Attributes.Title>NormalSizes</Attributes.Title>

View File

@@ -58,10 +58,10 @@ Used to trigger an operation.
<Grid><Button auto type="warning">Warning</Button></Grid>
<Grid><Button auto type="error">Error</Button></Grid>
<Grid><Button auto type="abort">Abort</Button></Grid>
<Grid><Button auto type="secondary-light">Secondary Ligth</Button></Grid>
<Grid><Button auto type="success-light">Success Ligth</Button></Grid>
<Grid><Button auto type="warning-light">Warning Ligth</Button></Grid>
<Grid><Button auto type="error-light">Error Ligth</Button></Grid>
<Grid><Button auto type="secondary-light">Secondary Light</Button></Grid>
<Grid><Button auto type="success-light">Success Light</Button></Grid>
<Grid><Button auto type="warning-light">Warning Light</Button></Grid>
<Grid><Button auto type="error-light">Error Light</Button></Grid>
</Grid.Container>
`} />

View File

@@ -40,6 +40,11 @@ export const meta = {
<Button>Action1</Button>
<Button>Action2</Button>
</ButtonGroup>
<ButtonGroup type="success-light" size="small">
<Button>One</Button>
<Button>Two</Button>
<Button>Three</Button>
</ButtonGroup>
</>
`} />
@@ -103,6 +108,7 @@ export const meta = {
```ts
type ButtonTypes = 'default' | 'secondary' | 'success' | 'warning' | 'error' | 'abort'
| 'secondary-light' | 'success-light' | 'warning-light' | 'error-light'
```
<Attributes.Title>NormalSizes</Attributes.Title>