Skip to content

Commit

Permalink
docs(label-value): add inline demo/docs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiFTy17 committed Oct 9, 2024
1 parent e212f39 commit 2c89759
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/stories/components/label-value/LabelValue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ Label values can also include an icon to the left of the label. This is useful f

<Canvas of={LabelValueStories.Icon} />

## Inline

Label values can also be displayed inline.

<Canvas of={LabelValueStories.Inline} />

> **Note:** When using multiple inline label values, it's common practice to set a fixed width on the label to ensure that the values are aligned.
## API

<CustomArgTypes />
Expand Down
7 changes: 7 additions & 0 deletions src/stories/components/label-value/LabelValue.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ export const Icon: Story = {
}
};

export const Inline: Story = {
...standaloneStoryParams,
args: {
inline: true
}
};

export const CSSOnly: Story = {
args: {
withIcon: false
Expand Down

0 comments on commit 2c89759

Please sign in to comment.