@tolokoban/ui
Version:
React components with theme
15 lines • 934 B
TypeScript
import { ChildStyleProps } from "./child.js";
import { DimensionStyleProps } from "./dimension.js";
import { PositionStyleProps } from "./position.js";
import { SpaceStyleProps } from "./space.js";
export type CommonProps = {
/**
* If defined, `className` will be added to the component.
*/
className?: string;
} & ChildStyleProps & DimensionStyleProps & PositionStyleProps & SpaceStyleProps;
export declare function styleCommon(props: CommonProps): React.CSSProperties;
export declare function classnameCommon(props: CommonProps): string;
export type Unit = "%" | "cm" | "mm" | "Q" | "in" | "pc" | "pt" | "px" | "em" | "ex" | "ch" | "rem" | "lh" | "rlh" | "vw" | "vh" | "vmin" | "vmax" | "vb" | "vi" | "svw" | "svh" | "lvw" | "lvh" | "dvw" | "dvh";
export type NumberWithUnit = "0" | "auto" | "max-content" | "min-content" | `fit-content(${number}${Unit})` | `${number}${Unit}`;
//# sourceMappingURL=common.d.ts.map