Skip to content

Commit 484a2e7

Browse files
Copilothotlong
andcommitted
Implement component library protocol with all component schemas
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 5b0d35f commit 484a2e7

31 files changed

Lines changed: 3662 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: AccordionComponent
3+
description: AccordionComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: AlertComponent
3+
description: AlertComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: BadgeComponent
3+
description: BadgeComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: BreadcrumbComponent
3+
description: BreadcrumbComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: CardComponent
3+
description: CardComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: Component
3+
description: Component Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `Enum<'card' \| 'tabs' \| 'accordion' \| 'modal' \| 'drawer' \| 'timeline' \| 'stepper' \| 'breadcrumb' \| 'alert' \| 'badge' \| 'tooltip' \| 'popover'>` || Component type |
11+
| **props** | `Record<string, any>` | optional | Component properties |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `any[]` | optional | Child components |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: ComponentType
3+
description: ComponentType Schema Reference
4+
---
5+
6+
## Allowed Values
7+
8+
* `card`
9+
* `tabs`
10+
* `accordion`
11+
* `modal`
12+
* `drawer`
13+
* `timeline`
14+
* `stepper`
15+
* `breadcrumb`
16+
* `alert`
17+
* `badge`
18+
* `tooltip`
19+
* `popover`
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: DrawerComponent
3+
description: DrawerComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: ModalComponent
3+
description: ModalComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: PopoverComponent
3+
description: PopoverComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |

0 commit comments

Comments
 (0)