-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Heading docs + preview * Caption docs + preview * Paragraph docs + preview * Title docs + preview
- Loading branch information
Showing
14 changed files
with
343 additions
and
29 deletions.
There are no files selected for viewing
5 changes: 0 additions & 5 deletions
5
@stellar/design-system-website/docs/foundations/typography.mdx
This file was deleted.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
@stellar/design-system-website/docs/foundations/typography/_category_.json
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,7 @@ | ||
{ | ||
"label": "Typography", | ||
"link": { | ||
"type": "generated-index", | ||
"description": "Typography (including headings, paragraph, and other text types) examples and documentation. These components don’t have any special props, and inherit their native HTML attributes." | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
@stellar/design-system-website/docs/foundations/typography/caption.mdx
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,19 @@ | ||
--- | ||
slug: /caption | ||
--- | ||
|
||
# Caption | ||
|
||
<ComponentDescription componentName="Caption" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Caption"> | ||
<Caption size="xs">Caption</Caption> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Caption" /> |
21 changes: 21 additions & 0 deletions
21
@stellar/design-system-website/docs/foundations/typography/heading.mdx
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,21 @@ | ||
--- | ||
slug: /heading | ||
--- | ||
|
||
# Heading | ||
|
||
<ComponentDescription componentName="Heading" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Heading"> | ||
<Heading as="h1" size="xs"> | ||
Heading | ||
</Heading> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Heading" /> |
19 changes: 19 additions & 0 deletions
19
@stellar/design-system-website/docs/foundations/typography/paragraph.mdx
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,19 @@ | ||
--- | ||
slug: /paragraph | ||
--- | ||
|
||
# Paragraph | ||
|
||
<ComponentDescription componentName="Paragraph" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Paragraph"> | ||
<Paragraph size="xs">Paragraph</Paragraph> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Paragraph" /> |
19 changes: 19 additions & 0 deletions
19
@stellar/design-system-website/docs/foundations/typography/title.mdx
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,19 @@ | ||
--- | ||
slug: /title | ||
--- | ||
|
||
# Title | ||
|
||
<ComponentDescription componentName="Title" /> | ||
|
||
## Example | ||
|
||
```tsx live | ||
<PreviewBlock componentName="Title"> | ||
<Title size="xs">Title</Title> | ||
</PreviewBlock> | ||
``` | ||
|
||
## Props | ||
|
||
<ComponentProps componentName="Title" /> |
28 changes: 28 additions & 0 deletions
28
@stellar/design-system-website/src/componentPreview/captionPreview.tsx
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,28 @@ | ||
import { ComponentPreview } from "@site/src/components/PreviewBlock"; | ||
|
||
export const captionPreview: ComponentPreview = { | ||
options: [ | ||
{ | ||
type: "select", | ||
prop: "size", | ||
options: [ | ||
{ | ||
value: "xs", | ||
label: "XS", | ||
}, | ||
{ | ||
value: "sm", | ||
label: "SM", | ||
}, | ||
{ | ||
value: "md", | ||
label: "MD", | ||
}, | ||
{ | ||
value: "lg", | ||
label: "LG", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
66 changes: 66 additions & 0 deletions
66
@stellar/design-system-website/src/componentPreview/headingPreview.tsx
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,66 @@ | ||
import { ComponentPreview } from "@site/src/components/PreviewBlock"; | ||
|
||
export const headingPreview: ComponentPreview = { | ||
options: [ | ||
{ | ||
type: "select", | ||
prop: "as", | ||
options: [ | ||
{ | ||
value: "h1", | ||
label: "h1", | ||
}, | ||
{ | ||
value: "h2", | ||
label: "h2", | ||
}, | ||
{ | ||
value: "h3", | ||
label: "h3", | ||
}, | ||
{ | ||
value: "h4", | ||
label: "h4", | ||
}, | ||
{ | ||
value: "h5", | ||
label: "h5", | ||
}, | ||
{ | ||
value: "h6", | ||
label: "h6", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "select", | ||
prop: "size", | ||
options: [ | ||
{ | ||
value: "xs", | ||
label: "XS", | ||
}, | ||
{ | ||
value: "sm", | ||
label: "SM", | ||
}, | ||
{ | ||
value: "md", | ||
label: "MD", | ||
}, | ||
{ | ||
value: "lg", | ||
label: "LG", | ||
}, | ||
{ | ||
value: "xl", | ||
label: "XL", | ||
}, | ||
{ | ||
value: "xxl", | ||
label: "XXL", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
33 changes: 33 additions & 0 deletions
33
@stellar/design-system-website/src/componentPreview/paragraphPreview.tsx
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,33 @@ | ||
import { ComponentPreview } from "@site/src/components/PreviewBlock"; | ||
|
||
export const paragraphPreview: ComponentPreview = { | ||
options: [ | ||
{ | ||
type: "select", | ||
prop: "size", | ||
options: [ | ||
{ | ||
value: "xs", | ||
label: "XS", | ||
}, | ||
{ | ||
value: "sm", | ||
label: "SM", | ||
}, | ||
{ | ||
value: "md", | ||
label: "MD", | ||
}, | ||
{ | ||
value: "lg", | ||
label: "LG", | ||
}, | ||
], | ||
}, | ||
{ | ||
type: "checkbox", | ||
prop: "asDiv", | ||
label: "As div", | ||
}, | ||
], | ||
}; |
28 changes: 28 additions & 0 deletions
28
@stellar/design-system-website/src/componentPreview/titlePreview.tsx
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,28 @@ | ||
import { ComponentPreview } from "@site/src/components/PreviewBlock"; | ||
|
||
export const titlePreview: ComponentPreview = { | ||
options: [ | ||
{ | ||
type: "select", | ||
prop: "size", | ||
options: [ | ||
{ | ||
value: "xs", | ||
label: "XS", | ||
}, | ||
{ | ||
value: "sm", | ||
label: "SM", | ||
}, | ||
{ | ||
value: "md", | ||
label: "MD", | ||
}, | ||
{ | ||
value: "lg", | ||
label: "LG", | ||
}, | ||
], | ||
}, | ||
], | ||
}; |
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
Oops, something went wrong.