Skip to content

Commit d9bd9df

Browse files
committed
Add component previews, and update ugnay styles
1 parent f5a616b commit d9bd9df

File tree

17 files changed

+157
-9186
lines changed

17 files changed

+157
-9186
lines changed

docs/Introduction.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ title: Introduction
88
- This website is a centralized repository of all the documentation of all the open source projects we're releasing ranging from legacy, to the maintained ones.
99

1010
## Project List
11-
- [Ugnay Components Web](/docs/ugnay)
11+
- [Ugnay Components Web](/docs/ugnay)
12+
- [Dayong](/docs/dayong)

docs/Ugnay Components Web/Core Components/Theme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
slug: /ugnay/core/theme
33
title: Theme
4+
tags:
5+
- Ugnay Components Web
6+
- Design System
7+
- SCSS
8+
- CSS
49
---
510
# Theme
611
- This is the documentation of the most important core module to be used in the library.

docs/Ugnay Components Web/Core Components/Typography.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
---
22
slug: /ugnay/core/typography
33
title: Typography
4+
tags:
5+
- Ugnay Components Web
6+
- Design System
7+
- SCSS
8+
- CSS
49
---
510

611
# Typography
-1.06 KB
Loading

docs/Ugnay Components Web/UI Components/sph-appbar.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@
22
slug: /ugnay/components/sph-appbar
33
id: sph-appbar
44
title: SPHAppbar
5+
tags:
6+
- Ugnay Components Web
7+
- Design System
8+
- SCSS
9+
- CSS
510
---
611

712
# SPHAppbar Documentation
813

914
- This component uses the [box-icons library](https://boxicons.com/).
1015

11-
![img.png](_img/appbar.png)
16+
![appbar.png](_img/appbar.png)
1217

1318
## HTML
1419

docs/Ugnay Components Web/UI Components/sph-button.md renamed to docs/Ugnay Components Web/UI Components/sph-button.mdx

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
11
---
2-
slug: /ugnay/components/sph-button
3-
id: sph-button
4-
title: SPHButton
2+
slug: /ugnay/components/sph-button
3+
id: sph-button
4+
title: SPHButton
5+
tags:
6+
- Ugnay Components Web
7+
- Design System
8+
- SCSS
9+
- CSS
510
---
611

712
# SPHButton Documentation
813

914
- This component uses the [box-icons library](https://boxicons.com/).
1015

11-
![img.png](_img/button.png)
16+
import {SPHComponentPreview, SPHComponentPreviewRow} from '../../../src/components/SPHComponentPreview';
17+
import SPHButton from '../../../src/components/SPHButton';
18+
19+
<SPHComponentPreview cols="2">
20+
<SPHComponentPreviewRow>
21+
<SPHButton icon="bxs-like">BUTTON</SPHButton>
22+
<SPHButton icon="bxs-like" type="outlined">BUTTON</SPHButton>
23+
<SPHButton icon="bxs-like" type="filled">BUTTON</SPHButton>
24+
</SPHComponentPreviewRow>
25+
<SPHComponentPreviewRow>
26+
<SPHButton icon="bxs-like" isDisabled>BUTTON</SPHButton>
27+
<SPHButton icon="bxs-like" type="outlined" isDisabled>BUTTON</SPHButton>
28+
<SPHButton icon="bxs-like" type="filled" isDisabled>BUTTON</SPHButton>
29+
</SPHComponentPreviewRow>
30+
</SPHComponentPreview>
1231

1332
## HTML
1433

1534
```html
35+
1636
<button class="sph-button">
1737
<i class="sph-button__icon bx bxs-like" aria-hidden="true"></i>
1838
<span class="sph-button__label">BUTTON</span>

docs/Ugnay Components Web/UI Components/sph-card.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
slug: /ugnay/components/sph-card
33
id: sph-card
44
title: SPHCard
5+
tags:
6+
- Ugnay Components Web
7+
- Design System
8+
- SCSS
9+
- CSS
510
---
611

712
# SPHCard Documentation

docs/Ugnay Components Web/UI Components/sph-header.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
slug: /ugnay/components/sph-header
33
id: sph-header
44
title: SPHHeader
5+
tags:
6+
- Ugnay Components Web
7+
- Design System
8+
- SCSS
9+
- CSS
510
---
611

712
# SPHHeader Documentation

docs/Ugnay Components Web/UI Components/sph-navbar.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
slug: /ugnay/components/sph-navbar
33
id: sph-navbar
44
title: SPHNavbar
5+
tags:
6+
- Ugnay Components Web
7+
- Design System
8+
- SCSS
9+
- CSS
510
---
611

712
# SPHNavbar Documentation

docs/Ugnay Components Web/UI Components/sph-text-field.md renamed to docs/Ugnay Components Web/UI Components/sph-text-field.mdx

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,31 @@
22
slug: /ugnay/components/sph-text-field
33
id: sph-text-field
44
title: SPHTextField
5+
tags:
6+
- Ugnay Components Web
7+
- Design System
8+
- SCSS
9+
- CSS
510
---
611

712
# SPHTextField Documentation
813

9-
![img.png](_img/text-field.png)
14+
import {SPHComponentPreview, SPHComponentPreviewRow} from '../../../src/components/SPHComponentPreview';
15+
16+
<SPHComponentPreview>
17+
<SPHComponentPreviewRow>
18+
<div class="sph-text-field">
19+
<label class="sph-text-field__label" for="your-id-here">Label</label>
20+
<input class="sph-text-field__input" type="text" id="your-id-here" />
21+
<small class="sph-text-field__helper">Helper Text</small>
22+
</div>
23+
<div class="sph-text-field error">
24+
<label class="sph-text-field__label" for="your-id-here">Label</label>
25+
<input class="sph-text-field__input" type="text" id="your-id-here" />
26+
<small class="sph-text-field__helper">Helper Text</small>
27+
</div>
28+
</SPHComponentPreviewRow>
29+
</SPHComponentPreview>
1030

1131
## HTML
1232
```html

0 commit comments

Comments
 (0)