UNPKG

@amsterdam/design-system-react

Version:

All React components from the Amsterdam Design System. Use it to compose pages in your website or application.

8 lines (7 loc) 557 B
import { jsx as _jsx } from "react/jsx-runtime"; import { clsx } from 'clsx'; import { forwardRef } from 'react'; import { gridCellClasses } from './gridCellClasses'; export const gridCellTags = ['article', 'aside', 'div', 'footer', 'header', 'main', 'nav', 'section']; export const GridCell = forwardRef(({ as: Tag = 'div', children, className, span, start, ...restProps }, ref) => (_jsx(Tag, { ...restProps, className: clsx('ams-grid__cell', gridCellClasses(span, start), className), ref: ref, children: children }))); GridCell.displayName = 'Grid.Cell';