mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
docs: replace h3
with h2
headings (#1452)
This commit is contained in:
parent
b5c4501903
commit
e2a90005b9
70 changed files with 552 additions and 559 deletions
|
@ -7,7 +7,7 @@ components: ["NumberInput", "NumberInputSkeleton"]
|
|||
import Preview from "../../components/Preview.svelte";
|
||||
</script>
|
||||
|
||||
### Default
|
||||
## Default
|
||||
|
||||
This component requires a numerical value for `value`.
|
||||
|
||||
|
@ -15,15 +15,15 @@ See [#no-value](#no-value) to allow for an empty value.
|
|||
|
||||
<NumberInput label="Clusters" value={0} />
|
||||
|
||||
### With helper text
|
||||
## With helper text
|
||||
|
||||
<NumberInput label="Clusters" value={0} helperText="Clusters provisioned in your region" />
|
||||
|
||||
### Minimum and maximum values
|
||||
## Minimum and maximum values
|
||||
|
||||
<NumberInput min="{4}" max="{20}" value="{4}" invalidText="Number must be between 4 and 20." helperText="Clusters provisioned in your region" label="Clusters (4 min, 20 max)" />
|
||||
|
||||
### No value
|
||||
## No value
|
||||
|
||||
Set `allowEmpty` to `true` to allow for no value.
|
||||
|
||||
|
@ -31,46 +31,46 @@ Set `value` to `null` to denote "no value."
|
|||
|
||||
<FileSource src="/framed/NumberInput/NumberInputEmpty" />
|
||||
|
||||
### Hidden label
|
||||
## Hidden label
|
||||
|
||||
<NumberInput hideLabel label="Clusters" value={0} />
|
||||
|
||||
### Hidden steppers
|
||||
## Hidden steppers
|
||||
|
||||
<NumberInput hideSteppers label="Clusters" value={0} />
|
||||
|
||||
### Light variant
|
||||
## Light variant
|
||||
|
||||
<NumberInput light label="Clusters" value={0} />
|
||||
|
||||
### Read-only variant
|
||||
## Read-only variant
|
||||
|
||||
<NumberInput readonly label="Clusters" value={0} />
|
||||
|
||||
### Extra-large size
|
||||
## Extra-large size
|
||||
|
||||
<NumberInput size="xl" label="Clusters" value={0} />
|
||||
|
||||
### Small size
|
||||
## Small size
|
||||
|
||||
<NumberInput size="sm" label="Clusters" value={0} />
|
||||
|
||||
### Invalid state
|
||||
## Invalid state
|
||||
|
||||
<NumberInput invalid invalidText="Invalid value" label="Clusters" value={0} />
|
||||
|
||||
### Warning state
|
||||
## Warning state
|
||||
|
||||
<NumberInput warn warnText="A high number may impact initial rollout" label="Clusters" value={25} />
|
||||
|
||||
### Disabled state
|
||||
## Disabled state
|
||||
|
||||
<NumberInput disabled label="Clusters" value={0} />
|
||||
|
||||
### Skeleton
|
||||
## Skeleton
|
||||
|
||||
<NumberInputSkeleton />
|
||||
|
||||
### Skeleton without label
|
||||
## Skeleton without label
|
||||
|
||||
<NumberInputSkeleton hideLabel />
|
Loading…
Add table
Add a link
Reference in a new issue