Skip to content

Commit

Permalink
docs: new action group example (#1411)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti10le authored Oct 19, 2021
1 parent 1495b97 commit a78b8ee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-horses-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"docs": patch
---

docs: fix bad action group example
20 changes: 5 additions & 15 deletions docs/content/components/action-group.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -52,30 +52,20 @@ import { ActionGroup } from '@marigold/components';

```tsx
<ActionGroup space={8}>
<Button variant="secondary" size="small">
<Play />
</Button>
<Button variant="secondary" size="small">
<Pause />
</Button>
<Button variant="secondary" size="small">
<Stop />
</Button>
<Button variant="ghost">Back</Button>
<Button variant="secondary">Next</Button>
</ActionGroup>
```

### With vertical alignment

```tsx
<ActionGroup space={8} verticalAlignment>
<Button variant="secondary" size="small">
<Play />
</Button>
<Button variant="secondary" size="small">
<Pause />
<Button variant="ghost" size="small">
Sort <SortUp />
</Button>
<Button variant="secondary" size="small">
<Stop />
Sort <SortDown />
</Button>
</ActionGroup>
```

0 comments on commit a78b8ee

Please sign in to comment.