-
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.
docs: Added Accordion docs STC-732 (#187)
* docs: Added Accordion docs STC-732 * chore: restore styleguidist docs files STC-732
- Loading branch information
Showing
7 changed files
with
73 additions
and
17 deletions.
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,64 @@ | ||
The Accordion component is a list of collapsible items where only one can be open at a time. | ||
|
||
## Basic Example | ||
```jsx live | ||
<Accordion> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
## Initially open | ||
```jsx live | ||
<Accordion initialOpenIndex={1}> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
## Different active background color | ||
|
||
### Primary | ||
```jsx live | ||
<Accordion activeBackgroundColor="primary"> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
### Secondary | ||
```jsx live | ||
<Accordion activeBackgroundColor="secondary"> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
### Text | ||
```jsx live | ||
<Accordion activeBackgroundColor="text"> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
### Success | ||
```jsx live | ||
<Accordion activeBackgroundColor="success"> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
### Warning | ||
```jsx live | ||
<Accordion activeBackgroundColor="warning"> | ||
<Accordion.Item title="General Settings">General Settings Content</Accordion.Item> | ||
<Accordion.Item title="Users">User content</Accordion.Item> | ||
</Accordion> | ||
``` | ||
|
||
|
||
## API | ||
|
||
- [Accordion](/docs/apis/accordion) |
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
# Button | ||
|
||
## Component | ||
|
||
This is the basic component for all buttons. | ||
|
||
## Variants | ||
|
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
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
052501b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for herzui ready!
✅ Preview
https://herzui-l43aovzi8-micromed.vercel.app
Built with commit 052501b.
This pull request is being automatically deployed with vercel-action