@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
57 lines (56 loc) • 1.59 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { HTMLAttributes, PropsWithChildren } from 'react';
import type { CrossAlignForColumn, MainAlign } from '../common/types';
export declare const columnGaps: readonly ["none", "x-small", "small", "large", "x-large"];
type ColumnGap = (typeof columnGaps)[number];
type ColumnTag = 'article' | 'div' | 'section';
export type ColumnProps = {
/**
* The vertical alignment of the items in the column.
* @default start
*/
align?: MainAlign;
/**
* The horizontal alignment of the items in the column.
* @default stretch
*/
alignHorizontal?: CrossAlignForColumn;
/**
* The HTML element to use.
* @default div
*/
as?: ColumnTag;
/**
* The amount of space between items.
* @default medium
*/
gap?: ColumnGap;
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
export declare const Column: import("react").ForwardRefExoticComponent<{
/**
* The vertical alignment of the items in the column.
* @default start
*/
align?: MainAlign;
/**
* The horizontal alignment of the items in the column.
* @default stretch
*/
alignHorizontal?: CrossAlignForColumn;
/**
* The HTML element to use.
* @default div
*/
as?: ColumnTag;
/**
* The amount of space between items.
* @default medium
*/
gap?: ColumnGap;
} & HTMLAttributes<HTMLElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<unknown>>;
export {};