liquidify-react
Version:
🚀 Production-ready React component library inspired by Apple's new design language post-WWDC 2025. Built with Panda CSS and React, using Bun as runtime (npm compatible). Helps developers maintain design consistency for Apple platform apps. 47+ components
16 lines • 616 B
TypeScript
/**
* Variant System for LiqUIdify Components
*
* Centralized variant management using Panda CSS patterns and tokens
*/
type VariantProps<T> = {
[K in keyof T]?: T[K] extends Record<string, unknown> ? keyof T[K] : T[K] extends readonly (infer U)[] ? U : never;
};
export type InferVariantProps<T> = VariantProps<T>;
type VariantConfig = Record<string, unknown>;
export declare const createVariants: <T extends VariantConfig>(config: T & {
base?: string | string[];
defaults?: Partial<VariantProps<T>>;
}) => (props?: VariantProps<T>) => string;
export {};
//# sourceMappingURL=variant-system.d.ts.map