Skip to content

Commit 635f80e

Browse files
authored
chore: add Source Code tab (#32)
1 parent 18df1f6 commit 635f80e

26 files changed

+143
-23
lines changed

apps/docs/content/_components/ratingbutton.md renamed to apps/docs/content/_components/WIP_ratingbutton.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The RatingButton component is an interactive input element specifically designed for evaluations on product pages. It provides users with the ability to select a rating by choosing an icon using either the cursor or keyboard input. The number of icons displayed and the actual icon used can be customized based on your specific requirements. The rating scale within the component operates from left to right.
44

5-
::tabs{:titles='["Usage", "API"]'}
5+
::tabs{:titles='["Usage", "API", "Source code"]'}
66

77
#tab-1
88

File renamed without changes.

apps/docs/content/_components/select.md renamed to apps/docs/content/_components/WIP_select.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Select
22

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

55
#tab-1
66

File renamed without changes.
File renamed without changes.

apps/docs/content/_components/accordionitem.md

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

3-
::tabs{:titles='["Usage", "API", "Source"]'}
3+
::tabs{:titles='["Usage", "API", "Source code"]'}
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.

apps/docs/content/_components/badge.md

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

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

55
#tab-1
66

@@ -64,3 +64,9 @@ The component itself does not provide any specific accessibility features. Pleas
6464
| `max` | `number` | `99` | |
6565
| `variant` | `SfBadgeVariant` | `standard` | `standard`, `dot` |
6666
| `placement` | `SfBadgePlacement` | `top-right` | `top-right`, `top-left`, `bottom-right`, `bottom-left` |
67+
68+
#tab-3
69+
70+
## Source code
71+
72+
<<<../../../../packages/qwik-storefront-ui/src/components/SfBadge/SfBadge.tsx

apps/docs/content/_components/button.md

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

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

55
#tab-1
66

@@ -101,3 +101,9 @@ If you need to use Button with non-`<button>` tags like `<div>` you need to add
101101
| `prefix` | Left side slotted content |
102102
| `default` | Slotted content |
103103
| `suffix` | Right side slotted content |
104+
105+
#tab-3
106+
107+
## Source code
108+
109+
<<<../../../../packages/qwik-storefront-ui/src/components/SfButton/SfButton.tsx

apps/docs/content/_components/checkbox.md

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

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

55
#tab-1
66

@@ -55,3 +55,9 @@ It's focusable and can be toggled with `Space`. -->
5555
| `ref?` | `Signal<Element>` | | |
5656
| `invalid` | `boolean` | `false` | |
5757
| `onChange$?` | `PropFunction<(event: QwikChangeEvent<HTMLInputElement>) => void>` | | |
58+
59+
#tab-3
60+
61+
## Source code
62+
63+
<<<../../../../packages/qwik-storefront-ui/src/components/SfCheckbox/SfCheckbox.tsx

apps/docs/content/_components/chip.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This component is shipped in our NPM package, but its API might change based on user feedback.
55
:::
66

7-
::tabs{:titles='["Usage", "API"]' class="mt-8"}
7+
::tabs{:titles='["Usage", "API", "Source code"]' class="mt-8"}
88

99
#tab-1
1010

@@ -94,3 +94,9 @@ When using `SfChip` without any text label/description inside, you should specif
9494
| `prefix` | Left side slotted content |
9595
| `default` | Slotted content |
9696
| `suffix` | Right side slotted content |
97+
98+
#tab-3
99+
100+
## Source code
101+
102+
<<<../../../../packages/qwik-storefront-ui/src/components/SfChip/SfChip.tsx

0 commit comments

Comments
 (0)