another-ui
Version:
as the name says, it's another ui library for React built on Tailwind & Shadcn
14 lines (13 loc) • 733 B
TypeScript
import type { VariantProps } from 'class-variance-authority';
import type { ReactNode } from 'react';
declare const classes: (props?: ({
size?: "md" | "lg" | "sm" | null | undefined;
color?: "default" | "error" | null | undefined;
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
export interface CreateIconOptions {
className?: string;
color?: VariantProps<typeof classes>['color'];
size?: VariantProps<typeof classes>['size'];
}
export declare const createIcon: (node: ReactNode, options?: CreateIconOptions) => string | number | boolean | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined;
export {};