-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9074255
commit 72d8ff2
Showing
32 changed files
with
2,176 additions
and
80 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"Badge": { | ||
"props": {} | ||
} | ||
} |
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,5 @@ | ||
{ | ||
"Box": { | ||
"props": {} | ||
} | ||
} |
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,214 @@ | ||
{ | ||
"Breadcrumb": { | ||
"props": { | ||
"gradientBackground": { | ||
"defaultValue": { | ||
"value": "light-900" | ||
}, | ||
"description": "color from theme, add for scroll gradient on mobile", | ||
"name": "gradientBackground", | ||
"parent": { | ||
"fileName": "Breadcrumb/src/index.tsx", | ||
"name": "BreadcrumbOptions" | ||
}, | ||
"declarations": [ | ||
{ | ||
"fileName": "Breadcrumb/src/index.tsx", | ||
"name": "BreadcrumbOptions" | ||
} | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "any" | ||
} | ||
}, | ||
"lastChildNotClickable": { | ||
"defaultValue": { | ||
"value": true | ||
}, | ||
"description": "set clickable or not the last child", | ||
"name": "lastChildNotClickable", | ||
"parent": { | ||
"fileName": "Breadcrumb/src/index.tsx", | ||
"name": "BreadcrumbOptions" | ||
}, | ||
"declarations": [ | ||
{ | ||
"fileName": "Breadcrumb/src/index.tsx", | ||
"name": "BreadcrumbOptions" | ||
} | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "enum", | ||
"raw": "boolean", | ||
"value": [ | ||
{ | ||
"value": "false" | ||
}, | ||
{ | ||
"value": "true" | ||
} | ||
] | ||
} | ||
}, | ||
"separator": { | ||
"defaultValue": { | ||
"value": "<RightIcon size=\"xs\" />" | ||
}, | ||
"description": "", | ||
"name": "separator", | ||
"parent": { | ||
"fileName": "Breadcrumb/src/index.tsx", | ||
"name": "BreadcrumbOptions" | ||
}, | ||
"declarations": [ | ||
{ | ||
"fileName": "Breadcrumb/src/index.tsx", | ||
"name": "BreadcrumbOptions" | ||
} | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "enum", | ||
"raw": "ReactNode", | ||
"value": [ | ||
{ | ||
"value": "string" | ||
}, | ||
{ | ||
"value": "number" | ||
}, | ||
{ | ||
"value": "false" | ||
}, | ||
{ | ||
"value": "true" | ||
}, | ||
{ | ||
"value": "ReactElement<any, string | JSXElementConstructor<any>>", | ||
"description": "", | ||
"fullComment": "", | ||
"tags": {} | ||
}, | ||
{ | ||
"value": "ReactFragment", | ||
"description": "", | ||
"fullComment": "", | ||
"tags": {} | ||
}, | ||
{ | ||
"value": "ReactPortal", | ||
"description": "", | ||
"fullComment": "", | ||
"tags": {} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"Breadcrumb.Item": { | ||
"props": { | ||
"isActive": { | ||
"defaultValue": null, | ||
"description": "", | ||
"name": "isActive", | ||
"parent": { | ||
"fileName": "Breadcrumb/src/Item.tsx", | ||
"name": "ItemOptions" | ||
}, | ||
"declarations": [ | ||
{ | ||
"fileName": "Breadcrumb/src/Item.tsx", | ||
"name": "ItemOptions" | ||
} | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "enum", | ||
"raw": "boolean", | ||
"value": [ | ||
{ | ||
"value": "false" | ||
}, | ||
{ | ||
"value": "true" | ||
} | ||
] | ||
} | ||
}, | ||
"separator": { | ||
"defaultValue": null, | ||
"description": "", | ||
"name": "separator", | ||
"parent": { | ||
"fileName": "Breadcrumb/src/Item.tsx", | ||
"name": "ItemOptions" | ||
}, | ||
"declarations": [ | ||
{ | ||
"fileName": "Breadcrumb/src/Item.tsx", | ||
"name": "ItemOptions" | ||
} | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "enum", | ||
"raw": "ReactNode", | ||
"value": [ | ||
{ | ||
"value": "string" | ||
}, | ||
{ | ||
"value": "number" | ||
}, | ||
{ | ||
"value": "false" | ||
}, | ||
{ | ||
"value": "true" | ||
}, | ||
{ | ||
"value": "ReactElement<any, string | JSXElementConstructor<any>>", | ||
"description": "", | ||
"fullComment": "", | ||
"tags": {} | ||
}, | ||
{ | ||
"value": "ReactFragment", | ||
"description": "", | ||
"fullComment": "", | ||
"tags": {} | ||
}, | ||
{ | ||
"value": "ReactPortal", | ||
"description": "", | ||
"fullComment": "", | ||
"tags": {} | ||
} | ||
] | ||
} | ||
}, | ||
"to": { | ||
"defaultValue": null, | ||
"description": "", | ||
"name": "to", | ||
"parent": { | ||
"fileName": "Breadcrumb/src/Item.tsx", | ||
"name": "ItemOptions" | ||
}, | ||
"declarations": [ | ||
{ | ||
"fileName": "Breadcrumb/src/Item.tsx", | ||
"name": "ItemOptions" | ||
} | ||
], | ||
"required": false, | ||
"type": { | ||
"name": "string" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,16 @@ | ||
import { Button } from '@welcome-ui/button' | ||
import { ButtonGroup } from '@welcome-ui/button-group' | ||
import * as React from 'react' | ||
|
||
const Example = () => { | ||
return ( | ||
<ButtonGroup size="sm" variant="tertiary"> | ||
<Button>First</Button> | ||
<Button variant="secondary">Second</Button> | ||
<Button variant="tertiary">Third</Button> | ||
<Button variant="ghost">Last</Button> | ||
</ButtonGroup> | ||
) | ||
} | ||
|
||
export default Example |
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,16 @@ | ||
import { Button } from '@welcome-ui/button' | ||
import { ButtonGroup } from '@welcome-ui/button-group' | ||
import * as React from 'react' | ||
|
||
const Example = () => { | ||
return ( | ||
<ButtonGroup> | ||
<Button>First</Button> | ||
<Button>Second</Button> | ||
<Button>Third</Button> | ||
<Button>Last</Button> | ||
</ButtonGroup> | ||
) | ||
} | ||
|
||
export default Example |
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,13 @@ | ||
--- | ||
category: forms | ||
description: The Button Group component arranges multiple buttons in a horizontal or vertical stack, allowing users to group related actions together. It provides a cohesive and organized way to present multiple buttons, ensuring consistent spacing and alignment. | ||
packageName: button-group | ||
title: ButtonGroup | ||
usage: import { ButtonGroup } from @welcome-ui/button-group | ||
--- | ||
|
||
### Overload | ||
|
||
`ButtonGroup` overloads the child components properties. | ||
|
||
<div data-playground="overload.tsx" data-component="ButtonGroup"></div> |
Oops, something went wrong.