Skip to content
This repository was archived by the owner on Jan 24, 2025. It is now read-only.

Commit 923ef6e

Browse files
authored
add tabs and accordion example to contributing.md (#352)
1 parent e928d1a commit 923ef6e

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

CONTRIBUTING.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,50 @@ To embed a Whimsical diagram:
871871
slightly deflated beach ball. **Do not draw a snake or some other kind or
872872
curve!**
873873

874+
### Tabs
875+
876+
The Tabs component allows you to organize content into multiple tabbed sections,
877+
enabling users to switch between content.
878+
879+
Wrap your content in <Tabs> and use <Tab> for each individual tab section.
880+
881+
```md
882+
<!-- prettier-ignore -->
883+
<Tabs groupId="language" items={['Rust', 'Typescript']}>
884+
<Tab value="Rust">Rust 1</Tab>
885+
<Tab value="Typescript">Typescript 1</Tab>
886+
</Tabs>
887+
```
888+
889+
### Accordion
890+
891+
The Accordion component allows you to create collapsible content sections. It's
892+
useful for organizing and presenting information in a compact, expandable
893+
format.
894+
895+
Wrap your content in <Accordion> and use <AccordionItem> for each collapsible
896+
section.
897+
898+
<!-- prettier-ignore -->
899+
```md
900+
<Accordion>
901+
<AccordionItem title="Hello">
902+
903+
```ts
904+
console.log("hello");
905+
```
906+
907+
</AccordionItem>
908+
<AccordionItem title="World">
909+
910+
```rs
911+
println!("world");
912+
```
913+
914+
</AccordionItem>
915+
</Accordion>
916+
```
917+
874918
## Translations
875919
876920
Content translations are supported via the Crowdin platform.

0 commit comments

Comments
 (0)