-
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(docs): Add button group documentation
- Loading branch information
1 parent
ad20ca3
commit 86ec06f
Showing
2 changed files
with
110 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
title: Button Group | ||
--- | ||
|
||
import Example from '../../components/Example.astro' | ||
|
||
# Button Group | ||
|
||
## Default | ||
|
||
<Example | ||
component={() => ( | ||
<div class="button-group"> | ||
<button class="button">add</button> | ||
<button class="button">random</button> | ||
<button class="button">notes</button> | ||
</div> | ||
)} | ||
> | ||
```html | ||
<div class="button-group"> | ||
<button class="button">add</button> | ||
<button class="button">random</button> | ||
<button class="button">notes</button> | ||
</div> | ||
``` | ||
</Example> | ||
|
||
## Full width | ||
|
||
<Example | ||
component={() => ( | ||
<div class="button-group w-full"> | ||
<button class="button w-full">add</button> | ||
<button class="button w-full">random</button> | ||
<button class="button w-full">notes</button> | ||
</div> | ||
)} | ||
> | ||
```html | ||
<div class="button-group w-full"> | ||
<button class="button w-full">add</button> | ||
<button class="button w-full">random</button> | ||
<button class="button w-full">notes</button> | ||
</div> | ||
``` | ||
</Example> | ||
|
||
## Centered | ||
|
||
<Example | ||
component={() => ( | ||
<div class="button-group w-full text-center"> | ||
<button class="button w-full">add</button> | ||
<button class="button w-full">random</button> | ||
<button class="button w-full">notes</button> | ||
</div> | ||
)} | ||
> | ||
```html | ||
<div class="button-group w-full text-center"> | ||
<button class="button w-full">add</button> | ||
<button class="button w-full">random</button> | ||
<button class="button w-full">notes</button> | ||
</div> | ||
``` | ||
</Example> | ||
|
||
## Horizontal | ||
|
||
<Example | ||
component={() => ( | ||
<div class="button-group button-group--horizontal"> | ||
<button class="button">back</button> | ||
<button class="button">add</button> | ||
</div> | ||
)} | ||
> | ||
```html | ||
<div class="button-group button-group--horizontal"> | ||
<button class="button">back</button> | ||
<button class="button">add</button> | ||
</div> | ||
``` | ||
</Example> | ||
|
||
## Compound | ||
|
||
<Example | ||
component={() => ( | ||
<div class="button-group text-center"> | ||
<button class="button w-full">translation</button> | ||
<div class="button-group button-group--horizontal"> | ||
<button class="button">back</button> | ||
<button class="button">add</button> | ||
</div> | ||
</div> | ||
)} | ||
> | ||
```html | ||
<div class="button-group text-center"> | ||
<button class="button w-full">translation</button> | ||
<div class="button-group button-group--horizontal"> | ||
<button class="button">back</button> | ||
<button class="button">add</button> | ||
</div> | ||
</div> | ||
``` | ||
</Example> |