UNPKG

@amsterdam/design-system-react

Version:

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

23 lines (22 loc) 858 B
import { jsx as _jsx } from "react/jsx-runtime"; /** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import clsx from 'clsx'; import { forwardRef } from 'react'; import { CardHeading } from './CardHeading'; import { CardHeadingGroup } from './CardHeadingGroup'; import { CardImage } from './CardImage'; import { CardLink } from './CardLink'; const CardRoot = forwardRef(({ children, className, ...restProps }, ref) => (_jsx("article", { ...restProps, className: clsx('ams-card', className), ref: ref, children: children }))); CardRoot.displayName = 'Card'; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-navigation-card--docs Card docs at Amsterdam Design System} */ export const Card = Object.assign(CardRoot, { Heading: CardHeading, HeadingGroup: CardHeadingGroup, Image: CardImage, Link: CardLink, });