-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(AIChip): add documentation of AI Chip component
- Loading branch information
1 parent
abcada2
commit c58109a
Showing
6 changed files
with
104 additions
and
0 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,7 @@ | ||
#### Live Demo | ||
<br/> | ||
|
||
<Preview name='components-ai-ai-chip-all--all' /> | ||
|
||
#### Props | ||
<PreviewWithPropTable name='components-ai-ai-chip-all--all' /> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,77 @@ | ||
--- | ||
title: AI Chip | ||
description: AI Chip, based on Action Chips, enables contextual and dynamic AI actions. It has a distinct appearance to signal users that the action utilizes AI capabilities. | ||
tabs: ['Usage', 'Code'] | ||
showMobile: true | ||
keywords: ['Toggle', 'Action Chip', 'Chip'] | ||
--- | ||
|
||
<Preview name='components-ai-ai-chip-all--all' /> | ||
|
||
### States | ||
|
||
AI Chip supports **5 states** - default, hover, active, focus and disabled. | ||
|
||
 | ||
<Caption>States - AI chip</Caption> | ||
|
||
### Structure | ||
|
||
#### AI chip | ||
|
||
<table style={{width: "100%"}}> | ||
<tbody> | ||
<tr> | ||
<th style={{width:"50%", textAlign: "left"}}>Property</th> | ||
<th style={{width:"50%", textAlign: "left"}}>Value(s)</th> | ||
</tr> | ||
<tr style={{verticalAlign: "top"}}> | ||
<td>Height</td> | ||
<td>24px</td> | ||
</tr> | ||
<tr style={{verticalAlign: "top"}}> | ||
<td>Corner radius</td> | ||
<td>12px</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<br /> | ||
|
||
 | ||
<Caption> Structure - AI chip</Caption> | ||
|
||
### Configurations | ||
|
||
#### AI Chip | ||
|
||
<table style={{width: "100%"}}> | ||
<tbody> | ||
<tr> | ||
<th style={{width:"33%", textAlign: "left"}}>Property</th> | ||
<th style={{width:"33%", textAlign: "left"}}>Value(s)</th> | ||
<th style={{width:"33%", textAlign: "left"}}>Default value</th> | ||
</tr> | ||
<tr style={{verticalAlign: "top"}}> | ||
<td>Label<br/></td> | ||
<td><label></td> | ||
<td>-</td> | ||
</tr> | ||
<tr style={{verticalAlign: "top"}}> | ||
<td>Left icon<br/><em>(optional)</em></td> | ||
<td><icon name></td> | ||
<td>-</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
<br /> | ||
|
||
### Usage | ||
|
||
#### AI Chip for AI assisted actions | ||
|
||
AI Chip should be used where there are actions that are assisted/powered by AI. | ||
|
||
 | ||
<Caption>AI Chip for AI assisted actions</Caption> |