mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-23 08:20:39 +01:00
chore(theme): improve options type
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import { defu } from 'defu'
|
||||
import type { ModuleOptions } from '../module'
|
||||
import input from './input'
|
||||
|
||||
export default (config: { colors: string[] }) => {
|
||||
export default (options: Required<ModuleOptions>) => {
|
||||
return defu({
|
||||
slots: {
|
||||
arrow: 'fill-gray-200 dark:fill-gray-800',
|
||||
@@ -24,5 +25,5 @@ export default (config: { colors: string[] }) => {
|
||||
base: 'relative group rounded-md inline-flex items-center focus:outline-none disabled:cursor-not-allowed disabled:opacity-75',
|
||||
value: 'truncate group-data-placeholder:text-current/50'
|
||||
}
|
||||
}, input(config))
|
||||
}, input(options))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user