1- import { Meta , Canvas , Story , Controls } from ' @storybook/blocks' ;
1+ import { Meta , Story , Controls } from ' @storybook/blocks' ;
22import { Button } from ' ./Button' ;
33import * as ButtonStories from ' ./Button.stories' ;
44
@@ -17,9 +17,9 @@ A versatile action component that triggers commands and navigates users.
1717
1818## Component
1919
20- <Canvas >
21- < Story of = { ButtonStories . Default } />
22- </ Canvas >
20+ <Story of = { ButtonStories . Default } / >
21+
22+ ---
2323
2424## Properties
2525
@@ -59,7 +59,7 @@ The `mods` prop accepts the following modifiers you can override:
5959
6060## Variants
6161
62- ### Types
62+ ### Types. ` type ` prop
6363
6464- ` primary ` – Emphasised call-to-action.
6565- ` secondary ` – Less emphasised, alternative action.
@@ -68,14 +68,14 @@ The `mods` prop accepts the following modifiers you can override:
6868- ` clear ` – Text-only variant without background and border.
6969- ` link ` – Styled as a textual link.
7070
71- ### Themes
71+ ### Themes. ` theme ` prop
7272
7373- ` default ` – Brand purple colours.
7474- ` danger ` – Red palette for destructive actions.
7575- ` success ` – Green palette for positive actions.
7676- ` special ` – White palette for dark backgrounds.
7777
78- ### Sizes
78+ ### Sizes. ` size ` prop
7979
8080- ` small ` – Compact height (4×).
8181- ` medium ` – Default height (5×).
@@ -100,9 +100,14 @@ import { IconPlus } from '@tabler/icons-react';
100100### Link Button
101101
102102``` jsx
103+ <!-- Navigate to a new page using the router -->
103104< Button to= " /pricing" > Pricing< / Button>
104105<!-- Use ` !` prefix to open in a new tab -->
105106< Button to= " !/pricing" > Pricing< / Button>
107+ <!-- Use ` @` prefix to navigate to a new page without using the router -->
108+ < Button to= " @/pricing" > Pricing< / Button>
109+ <!-- Use ` @` to reload the page -->
110+ < Button to= " @/pricing" > Pricing< / Button>
106111```
107112
108113### Loading State
0 commit comments