@preboot.io/preboot-ui-community
Version:
A community-driven React component library to accelerate building modern SaaS applications, designed to work with PreBoot.io backend.
29 lines (28 loc) • 937 B
TypeScript
export declare const tableRenderers: {
boolean: (options?: {
activeLabel?: string;
inactiveLabel?: string;
activeColor?: string;
inactiveColor?: string;
}) => (value: boolean) => import("react/jsx-runtime").JSX.Element;
stringArray: (options?: {
color?: string;
variant?: "light" | "filled" | "outline";
}) => (values: string[]) => import("react/jsx-runtime").JSX.Element;
date: (options?: {
format?: string;
}) => (value: string | Date) => string;
currency: (options?: {
currency?: string;
locale?: string;
}) => (value: number) => string;
percentage: (options?: {
decimals?: number;
}) => (value: number) => string;
status: (options: {
statuses: Record<string, {
color: string;
label?: string;
}>;
}) => (value: string) => import("react/jsx-runtime").JSX.Element;
};