Skip to content

Commit

Permalink
docs(Card): adds horizontal fields example
Browse files Browse the repository at this point in the history
  • Loading branch information
langz authored and tujoworker committed Nov 17, 2023
1 parent 2fdbd4b commit 067e382
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ export const VerticalFields = () => {
)
}

export const HorizontalFields = () => {
return (
<ComponentBox>
<Card>
<Flex.Horizontal>
<Field.String label="Label" value="Value" />
<Field.String label="Label" value="Value" />
</Flex.Horizontal>
</Card>
</ComponentBox>
)
}

export const WithHeadingsAndAriaLabel = () => {
return (
<ComponentBox hidePreview>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ import * as Examples from './Examples'

<Examples.VerticalFields />

### Horizontal fields

<Examples.HorizontalFields />

### Stack

<Examples.Stack />

0 comments on commit 067e382

Please sign in to comment.