mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
feat(progress-bar): add size prop
This commit is contained in:
parent
e6396591ee
commit
93983f9306
1 changed files with 8 additions and 0 deletions
|
@ -8,6 +8,12 @@
|
|||
/** Specify the maximum value */
|
||||
export let max = 100;
|
||||
|
||||
/**
|
||||
* Specify the size
|
||||
* @type {"sm" | "md"}
|
||||
*/
|
||||
export let size = "md";
|
||||
|
||||
/** Specify the label text */
|
||||
export let labelText = "";
|
||||
|
||||
|
@ -29,6 +35,8 @@
|
|||
<div
|
||||
class:bx--progress-bar="{true}"
|
||||
class:bx--progress-bar--indeterminate="{indeterminate}"
|
||||
class:bx--progress-bar--big="{size === 'md'}"
|
||||
class:bx--progress-bar--small="{size === 'sm'}"
|
||||
{...$$restProps}
|
||||
>
|
||||
<label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue