UNPKG

seehar-design-vue

Version:

Seehar Design Vue - A Vue.js 3 UI library

14 lines (11 loc) 434 B
import { CSSClass } from '../variant' export interface IComponentWithRoot extends Record<string, unknown> { root?: string // classes?: string | undefined // base?: CSSClass variants?: Record<string, Record<string, string[]>> // variant?: string } export type IComponentWithRootType<T extends IComponentWithRoot> = { [P in keyof T]: P extends 'variant' ? string | undefined | (string | undefined)[] : T[P] }