-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Timeline component (#1556)
* feat: add Timeline component * wip * upgrade storybook * upgrade deps * use node 20
- Loading branch information
1 parent
e213f58
commit 1724c00
Showing
12 changed files
with
679 additions
and
85 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { Meta, ArgsTable, Story, Source, Canvas } from '@storybook/blocks'; | ||
import * as TimelineStories from './Timeline.stories.tsx'; | ||
|
||
<Meta of={TimelineStories} /> | ||
|
||
# Timeline | ||
|
||
> A primitive for displaying chronological data. | ||
## Example | ||
|
||
<Source dark /> | ||
|
||
## Controlling font size | ||
|
||
The `size` prop controls font size. There are three available font sizes, defined as `small`, `medium` and `large`. | ||
|
||
### Small | ||
|
||
> The `small` size sets the font size to `--font-size-200` | ||
<Canvas> | ||
<Story of={TimelineStories.SmallSize} /> | ||
</Canvas> | ||
|
||
### Medium | ||
|
||
> The `medium` size sets the font size to `--font-size-300` | ||
<Canvas> | ||
<Story of={TimelineStories.MediumSize} /> | ||
</Canvas> | ||
|
||
### Large | ||
|
||
> The `large` size sets the font size to `--font-size-400` | ||
<Canvas> | ||
<Story of={TimelineStories.LargeSize} /> | ||
</Canvas> | ||
|
||
## Props | ||
|
||
<ArgsTable /> |
Oops, something went wrong.