mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-17 21:48:07 +01:00
feat(SelectMenu): use UInput in search to handle props like icon
Resolves #2021
This commit is contained in:
@@ -7,26 +7,7 @@ export default (options: Required<ModuleOptions>) => {
|
||||
slots: {
|
||||
value: 'truncate',
|
||||
placeholder: 'truncate text-[var(--ui-text-dimmed)]',
|
||||
input: 'placeholder:text-[var(--ui-text-dimmed)] border-0 border-b border-[var(--ui-border)] focus:outline-none'
|
||||
},
|
||||
variants: {
|
||||
size: {
|
||||
xs: {
|
||||
input: 'text-xs px-2 py-1'
|
||||
},
|
||||
sm: {
|
||||
input: 'text-xs px-2.5 py-1.5'
|
||||
},
|
||||
md: {
|
||||
input: 'text-sm px-2.5 py-1.5'
|
||||
},
|
||||
lg: {
|
||||
input: 'text-sm px-3 py-2'
|
||||
},
|
||||
xl: {
|
||||
input: 'text-base px-3 py-2'
|
||||
}
|
||||
}
|
||||
input: 'border-b border-[var(--ui-border)]'
|
||||
}
|
||||
}, select(options))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user