Skip to content
This repository has been archived by the owner on Dec 26, 2024. It is now read-only.

Commit

Permalink
add discription
Browse files Browse the repository at this point in the history
  • Loading branch information
Juyeong-Byeon committed Oct 6, 2021
1 parent 420cff3 commit 5153505
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions docs/src/components/FAB/FAB.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,33 @@ import {FAB} from 'dooboo-ui';

## Props

| | Types | Description | Default |
| -------------- | ------------------------------------------- | ----------- | ------- |
| isActive | `boolean` | | |
| FABItems | `Array<Item>` | | |
| onPressFAB | `() => void` | | |
| onPressFABItem | `(item?: Item) => void` | | |
| renderFAB? | `() => ReactElement` | | |
| renderFABItem? | `(item: Item, idx: number) => ReactElement` | | |
| style? | `Styles` | | |
| styles? | `Styles` | | |
| | Types | Description | Default |
| -------------- | ------------------------------------------- | ------------------------------------------ | ------- |
| isActive | `boolean` | | |
| FABItems | `Array<Item>` | List of id and iconName form each FABItems | |
| onPressFAB | `() => void` | Press callback for main FAB button | |
| onPressFABItem | `(item?: Item) => void` | Press callback for main FAB button | |
| renderFAB? | `() => ReactElement` | | |
| renderFABItem? | `(item: Item, idx: number) => ReactElement` | | |
| style? | `Styles` | | |
| styles? | `Styles` | Extra Props for FAB styles | |

## FABItem

| | Types | Description | Default |
| ---- | ---------- | ----------- | ------- |
| icon | `IconName` | | |
| id | `string` | | |
| | Types | Description | Default |
| ---- | ---------- | ---------------------------------------------------------------------------------- | ------- |
| icon | `IconName` | | |
| id | `string` | Id for distinguishing from other FABItems that passed from onPressFABItem callback | |

## Styles

| | Types | Description | Default |
| ---------- | ---------------------- | ----------- | ------- |
| FAB? | `StyleProp<ViewStyle>` | | |
| FABItem? | `StyleProp<ViewStyle>` | | |
| iconSize? | `number` | | 24 |
| buttonSize | `ButtonSize` | | |
| gap? | `number` | | 20 |
| | Types | Description | Default |
| ---------- | ---------------------- | ----------------------- | ------- |
| FAB? | `StyleProp<ViewStyle>` | Style for main FAB | |
| FABItem? | `StyleProp<ViewStyle>` | Style for FABItem | |
| iconSize? | `number` | | 24 |
| buttonSize | `ButtonSize` | | |
| gap? | `number` | Gap between FAB Buttons | 20 |

## Demo

Expand Down

0 comments on commit 5153505

Please # to comment.