@varlet/ui
Version:
A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.
29 lines (17 loc) • 695 B
TypeScript
import type { App } from 'vue'
export class VarComponent {
static name: string
static install(app: App): void
}
export type SetPropsDefaults<P> = (defaults: Partial<Record<keyof P, any>>) => void
export type Type = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'
export type Size = 'normal' | 'mini' | 'small' | 'large'
export type Direction = 'horizontal' | 'vertical'
export type Variant = 'outlined' | 'standard'
export type ListenerProp<F> = F | F[]
export type Rule = Record<string, any> | ((v: any) => any)
export type Rules = Rule | Rule[]
export interface BasicAttributes {
class?: string | Record<string, any>
style?: string | Record<string, any>
}