feat(SelectMenu): new component (#103)

This commit is contained in:
Benjamin Canac
2024-05-13 14:26:01 +02:00
committed by GitHub
parent 8baee1292f
commit 7a376b5e49
23 changed files with 2318 additions and 196 deletions

12
src/theme/select-menu.ts Normal file
View File

@@ -0,0 +1,12 @@
import { defu } from 'defu'
import select from './select'
export default (config: { colors: string[] }) => {
return defu({
slots: {
value: 'truncate',
placeholder: 'truncate text-current/50',
input: 'text-sm px-2.5 py-1.5 placeholder-gray-400 dark:placeholder-gray-500 border-0 border-b border-gray-200 dark:border-gray-800 focus:outline-none'
}
}, select(config))
}