feat(SelectMenu): add clearble

This commit is contained in:
rdjanuar
2024-11-12 18:47:39 +07:00
parent 3a5960fb58
commit 5a414eb55a
6 changed files with 182 additions and 37 deletions

View File

@@ -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: {

View File

@@ -23,7 +23,6 @@ export default {
default: {
selectedIcon: 'i-heroicons-check-20-solid',
clearSearchOnClose: false,
closeOnClear: true,
showCreateOptionWhen: 'empty',
searchablePlaceholder: {
label: 'Search...'