@variantjs/vue
Version:
Vue VariantJS: Fully configurable Vue 3 components styled with TailwindCSS
24 lines (23 loc) • 1.07 kB
TypeScript
import { CSSRawClassesList, Data, VariantsWithClassesList } from '@variantjs/core';
import { PropType } from 'vue';
import { VariantJSProps, VariantJSWithClassesListProps } from '../types';
declare const getVariantProps: <ComponentOptions extends Data>() => VariantJSProps;
declare const getVariantPropsWithClassesList: <ComponentOptions extends Data, ClassesKeys extends string>() => VariantJSWithClassesListProps<ClassesKeys, import("@variantjs/core").WithVariantPropsAndClassesList<Data, ClassesKeys>, {
classes: {
type: PropType<CSSRawClassesList<ClassesKeys>>;
default: undefined;
};
fixedClasses: {
type: PropType<CSSRawClassesList<ClassesKeys>>;
default: undefined;
};
variants: {
type: PropType<VariantsWithClassesList<import("@variantjs/core").WithVariantPropsAndClassesList<Data, ClassesKeys>, ClassesKeys>>;
default: undefined;
};
variant: {
type: PropType<string | undefined>;
default: undefined;
};
}>;
export { getVariantProps, getVariantPropsWithClassesList };