@brizy/ui
Version:
React elements in Brizy style
18 lines (17 loc) • 915 B
TypeScript
import { CSSProperties } from "react";
import { ApplyProperties, Color } from "../types";
export type SizeKey = "--brz-ui-shape-text-size" | "--brz-ui-shape-text-source-loading" | "--brz-ui-shape-text-content--loading-size";
interface AlignProperty extends CSSProperties {
"--brz-ui-shape-text-align": string;
}
interface ShapeTextColorProperties {
"--brz-ui-shape-text-hover-color": string;
}
type SizeProperty = CSSProperties & Record<SizeKey, string>;
export declare const getAlignStyles: (align?: "center" | "left" | "right") => AlignProperty | Record<string, unknown>;
export declare const getColor: (hoverColor?: Color) => ApplyProperties<Partial<ShapeTextColorProperties>> | undefined;
export declare const getSize: (variableName?: SizeKey, size?: number) => SizeProperty | Record<string, unknown>;
export declare const LoadingContent: ({ lines }: {
lines?: number;
}) => JSX.Element;
export {};