@brizy/ui
Version:
React elements in Brizy style
12 lines (11 loc) • 826 B
TypeScript
import { CSSProperties, FC, PropsWithChildren } from "react";
export type Color = "black" | "red" | "magneta" | "red-light" | "blue" | "blue-mid" | "blue-light" | "blue-lightest" | "blue-dark" | "blue-darkest" | "dark" | "darkest" | "gray" | "gray-dark" | "gray-darkest" | "gray-mid" | "gray-light" | "gray-lightest" | "orange" | "orange-light" | "green" | "green-light" | "white" | "violet-blue" | "transparent" | "inherit";
export type ApplyProperties<T> = CSSProperties & T;
export type ExportFunction = <T>(el: HTMLElement, config?: T) => void;
export type Literal = string | number;
export type LiteralArray = string[] | number[];
export type FCC<P = NonNullable<unknown>> = FC<PropsWithChildren<P>>;
export type FCP<P, R> = (p: P) => R;
export type DataAttributes = {
[key in `data-${string}`]?: string | number;
};