mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 10:21:05 +00:00
feat: support size prop for input components
- DatePickerInput, NumberInput, Select, PasswordInput, TextInput
This commit is contained in:
parent
9dd9c09362
commit
331dc4a656
9 changed files with 60 additions and 11 deletions
|
@ -1,4 +1,5 @@
|
|||
<script>
|
||||
export let size = undefined; // "sm" | "xl"
|
||||
export let value = "";
|
||||
export let step = 1;
|
||||
export let max = undefined;
|
||||
|
@ -76,7 +77,8 @@
|
|||
class:bx--number--readonly={readonly}
|
||||
class:bx--number--light={light}
|
||||
class:bx--number--nolabel={hideLabel}
|
||||
class:bx--number--mobile={mobile}>
|
||||
class:bx--number--mobile={mobile}
|
||||
class={size && `bx--number--${size}`}>
|
||||
{#if mobile}
|
||||
{#if label}
|
||||
<label
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue