mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
feat(SelectMenu): add clearble
This commit is contained in:
@@ -98,6 +98,18 @@ export default {
|
||||
'lg': 'px-3.5',
|
||||
'xl': 'px-3.5'
|
||||
}
|
||||
},
|
||||
clearable: {
|
||||
wrapper: 'absolute inset-y-0 end-6 flex items-center',
|
||||
pointer: 'pointer-events-auto',
|
||||
padding: {
|
||||
'2xs': 'px-2',
|
||||
'xs': 'px-2.5',
|
||||
'sm': 'px-2.5',
|
||||
'md': 'px-3',
|
||||
'lg': 'px-3.5',
|
||||
'xl': 'px-3.5'
|
||||
}
|
||||
}
|
||||
},
|
||||
default: {
|
||||
|
||||
@@ -23,7 +23,6 @@ export default {
|
||||
default: {
|
||||
selectedIcon: 'i-heroicons-check-20-solid',
|
||||
clearSearchOnClose: false,
|
||||
closeOnClear: true,
|
||||
showCreateOptionWhen: 'empty',
|
||||
searchablePlaceholder: {
|
||||
label: 'Search...'
|
||||
|
||||
Reference in New Issue
Block a user