mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
Run "yarn build:docs"
This commit is contained in:
parent
c998dbd8d7
commit
036c407f40
3 changed files with 27 additions and 0 deletions
|
@ -8260,6 +8260,17 @@
|
||||||
"constant": false,
|
"constant": false,
|
||||||
"reactive": false
|
"reactive": false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "kind",
|
||||||
|
"kind": "let",
|
||||||
|
"description": "Specify the kind of progress bar",
|
||||||
|
"type": "\"default\" | \"inline\" | \"indented\"",
|
||||||
|
"value": "\"default\"",
|
||||||
|
"isFunction": false,
|
||||||
|
"isFunctionDeclaration": false,
|
||||||
|
"constant": false,
|
||||||
|
"reactive": false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "size",
|
"name": "size",
|
||||||
"kind": "let",
|
"kind": "let",
|
||||||
|
|
|
@ -35,6 +35,16 @@ Use `hideLabel` to visually hide the label text.
|
||||||
|
|
||||||
<ProgressBar hideLabel value={40} labelText="Upload status" helperText="40 MB of 100 MB" />
|
<ProgressBar hideLabel value={40} labelText="Upload status" helperText="40 MB of 100 MB" />
|
||||||
|
|
||||||
|
### Inline variant
|
||||||
|
|
||||||
|
The inline variant visually hides the `helperText`.
|
||||||
|
|
||||||
|
<ProgressBar kind="inline" value={40} labelText="Upload status" helperText="40 MB of 100 MB" />
|
||||||
|
|
||||||
|
### Indented variant
|
||||||
|
|
||||||
|
<ProgressBar kind="indented" value={40} labelText="Upload status" helperText="40 MB of 100 MB" />
|
||||||
|
|
||||||
### UX example
|
### UX example
|
||||||
|
|
||||||
This example shows how to animate the progress bar from 0 to 100% with start and end states.
|
This example shows how to animate the progress bar from 0 to 100% with start and end states.
|
||||||
|
|
6
types/ProgressBar/ProgressBar.svelte.d.ts
vendored
6
types/ProgressBar/ProgressBar.svelte.d.ts
vendored
|
@ -15,6 +15,12 @@ export interface ProgressBarProps
|
||||||
*/
|
*/
|
||||||
max?: number;
|
max?: number;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Specify the kind of progress bar
|
||||||
|
* @default "default"
|
||||||
|
*/
|
||||||
|
kind?: "default" | "inline" | "indented";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Specify the size
|
* Specify the size
|
||||||
* @default "md"
|
* @default "md"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue