Skip to content

Commit 52bdd14

Browse files
authored
feat: add source code componet on docs (#31)
1 parent d06875e commit 52bdd14

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

apps/docs/content/_components/accordionitem.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AccordionItem
22

3-
::tabs{:titles='["Usage", "API"]'}
3+
::tabs{:titles='["Usage", "API", "Source"]'}
44

55
#tab-1
66
The `SfAccordionItem` component is a wrapper around the native `<details>` and `<summary>` HTML elements. It allows you to create an accordion component that expands and collapses content.
@@ -59,3 +59,9 @@ For example, `<summary>` elements are focusable and can be activated by pressing
5959
| `ref?` | `Signal<Element>` | | |
6060
| `summaryClass` | `string` | | |
6161
| `onToggle$?` | `PropFunction<(open: boolean) => void>` | | |
62+
63+
#tab-3
64+
65+
## Source code
66+
67+
<<<../../../../packages/qwik-storefront-ui/src/components/SfAccordionItem/SfAccordionItem.tsx

0 commit comments

Comments
 (0)