add fullWidth prop to MultiSelect
This commit is contained in:
parent
ebfe40b219
commit
243ab3e5b5
1 changed files with 8 additions and 0 deletions
|
|
@ -20,6 +20,7 @@
|
||||||
disabled?: boolean
|
disabled?: boolean
|
||||||
size?: 'small' | 'medium' | 'large'
|
size?: 'small' | 'medium' | 'large'
|
||||||
contained?: boolean
|
contained?: boolean
|
||||||
|
fullWidth?: boolean
|
||||||
class?: string
|
class?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -31,6 +32,7 @@
|
||||||
disabled = false,
|
disabled = false,
|
||||||
size = 'small',
|
size = 'small',
|
||||||
contained = false,
|
contained = false,
|
||||||
|
fullWidth = false,
|
||||||
class: className = ''
|
class: className = ''
|
||||||
}: Props = $props()
|
}: Props = $props()
|
||||||
|
|
||||||
|
|
@ -64,6 +66,7 @@
|
||||||
'multi-select',
|
'multi-select',
|
||||||
size,
|
size,
|
||||||
contained && 'contained',
|
contained && 'contained',
|
||||||
|
fullWidth && 'full',
|
||||||
disabled && 'disabled',
|
disabled && 'disabled',
|
||||||
value.length > 0 && 'has-value',
|
value.length > 0 && 'has-value',
|
||||||
className
|
className
|
||||||
|
|
@ -224,6 +227,11 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Variant: full width
|
||||||
|
:global([data-select-trigger].multi-select.full) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
// Dropdown content
|
// Dropdown content
|
||||||
:global([data-select-content].multi-content) {
|
:global([data-select-content].multi-content) {
|
||||||
background: var(--dialog-bg);
|
background: var(--dialog-bg);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue