@noema/motif
Version:
A type-safe styling library for React components built on top of [Vanilla Extract](https://vanilla-extract.style/). `@noema/motif` allows you to create styled components with consistent theme-aware props that cleanly separate styling from component logic.
15 lines (14 loc) • 557 B
TypeScript
/**
* Helper function to categorize props into sprinkled, primitive, and rest
*/
export declare function categorizeProps<T extends Record<string, any>>(props: T, sprinklesProperties: Set<string>, config: {
refs: Record<string, any>;
shorthands?: Record<string, any>;
}): {
sprinkled: Record<string, any>;
primitive: Record<string, any>;
shorthands: Record<string, any>;
rest: Record<string, any>;
};
export declare const UNITLESS: Record<string, boolean>;
export declare function resolveValue(key: string, value: unknown): string;