Skip to content

Commit

Permalink
chore(Card): add "no padding" example (#4212)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Nov 4, 2024
1 parent ad3ce2d commit c7459e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,16 @@ export const WithHeadingsAndAriaLabel = () => {
)
}

export const WithoutPadding = () => {
return (
<ComponentBox>
<Card innerSpace={false} align="stretch">
<P>no inner space</P>
</Card>
</ComponentBox>
)
}

export const WithNestedSection = () => {
return (
<ComponentBox data-visual-test="card-nested-section">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ import * as Examples from './Examples'

### Stack

The Card components needs to have `stack={true}` or `align="stretch"` in order to stretch its children components.

For [form components](uilib/extensions/forms/), you should use `stack={true}` to get the correct spacing.

<Examples.Stack />

### Without padding

<Examples.WithoutPadding />

### With nested Section

The Card components needs to have `stack={true}` or `align="stretch"` in order to stretch its children components.
Expand Down

0 comments on commit c7459e2

Please sign in to comment.