UNPKG

@amsterdam/design-system-react

Version:

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

15 lines (14 loc) 780 B
import { jsx as _jsx } from "react/jsx-runtime"; /** * @license EUPL-1.2+ * Copyright Gemeente Amsterdam */ import { clsx } from 'clsx'; import { forwardRef } from 'react'; export const spotlightTags = ['article', 'aside', 'div', 'footer', 'section']; export const spotlightColors = ['azure', 'green', 'lime', 'magenta', 'orange', 'yellow']; /** * @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs Spotlight docs at Amsterdam Design System} */ export const Spotlight = forwardRef(({ as: Tag = 'div', children, className, color, ...restProps }, ref) => (_jsx(Tag, { ...restProps, className: clsx('ams-spotlight', color && `ams-spotlight--${color}`, className), ref: ref, children: children }))); Spotlight.displayName = 'Spotlight';