mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 16:30:45 +01:00
chore(theme): improve options type
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { defu } from 'defu'
|
||||
import type { ModuleOptions } from '../module'
|
||||
import select from './select'
|
||||
|
||||
export default (config: { colors: string[] }) => {
|
||||
export default (options: Required<ModuleOptions>) => {
|
||||
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))
|
||||
}, select(options))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user