-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
3,215 additions
and
4,583 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,5 @@ | ||
import { Meta, Description } from '@storybook/blocks' | ||
import { Figma } from "@storybook/addon-designs/blocks"; | ||
import { Grid } from './utils' | ||
import * as ButtonStories from './Button.stories' | ||
|
||
# Button | ||
|
||
<Meta of={ButtonStories} /> | ||
<Description of={ButtonStories} /> | ||
|
||
> The button component is used to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation. | ||
### Button variants | ||
|
||
<Grid of={ButtonStories} /> | ||
|
||
# Usage | ||
|
||
To use this button. please install the following packages: | ||
``` | ||
yarn add @mycompany/button | ||
``` | ||
|
||
Then use it in your application such as: | ||
```jsx | ||
import { Button } from '@mycompany/button' | ||
|
||
export const Page = () => { | ||
const getFood = () => {} | ||
return <Button onClick={getFood}>Click me</Button> | ||
} | ||
``` | ||
|
||
### Design specs | ||
|
||
<Figma url="https://www.figma.com/file/3Q1HTCalD0lJnNvcMoEw1x/Mealdrop?node-id=1005%3A2974&t=8pzYUq8GyzmMGjJ2-4" /> | ||
import { Meta, Story } from '@storybook/addon-docs'; | ||
|
||
<Meta title="Foobar" /> | ||
|
||
<Story id="button--primary" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.