@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
26 lines (25 loc) • 1.08 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { HTMLAttributes, PropsWithChildren } from 'react';
import type { GridColumnNumber, GridColumnNumbers } from './Grid';
export declare const gridCellTags: readonly ["article", "aside", "div", "footer", "header", "main", "nav", "section"];
export type GridCellTag = (typeof gridCellTags)[number];
type GridCellSpanAllProp = {
/** Lets the cell span the full width of all grid variants. */
span: 'all';
start?: never;
};
type GridCellSpanAndStartProps = {
/** The amount of grid columns the cell spans. */
span?: GridColumnNumber | GridColumnNumbers;
/** The index of the grid column the cell starts at. */
start?: GridColumnNumber | GridColumnNumbers;
};
export type GridCellProps = (GridCellSpanAllProp | GridCellSpanAndStartProps) & PropsWithChildren<HTMLAttributes<HTMLElement>> & {
/** The HTML tag to use. */
as?: GridCellTag;
};
export declare const GridCell: import("react").ForwardRefExoticComponent<GridCellProps & import("react").RefAttributes<unknown>>;
export {};