shelving
Version:
Toolkit for using data in JavaScript.
12 lines (11 loc) • 558 B
TypeScript
/** Width variants — constrain (or unconstrain) a block-level component's max-width. */
export interface WidthVariants {
/** Constrain to narrow max-width (`--width-narrow`). */
narrow?: boolean | undefined;
/** Constrain to wide max-width (`--width-wide`). */
wide?: boolean | undefined;
/** Take the full available width — removes any default max-width constraint. */
full?: boolean | undefined;
}
export type Width = keyof WidthVariants;
export declare function getWidthClass(width: Width | WidthVariants): string | undefined;