@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
28 lines (27 loc) • 1.13 kB
TypeScript
/**
* @license EUPL-1.2+
* Copyright Gemeente Amsterdam
*/
import type { HTMLAttributes, PropsWithChildren } from 'react';
export declare const spotlightTags: readonly ["article", "aside", "div", "footer", "section"];
type SpotlightTag = (typeof spotlightTags)[number];
export declare const spotlightColors: readonly ["azure", "green", "lime", "magenta", "orange", "yellow"];
type SpotlightColor = (typeof spotlightColors)[number];
export type SpotlightProps = {
/** The HTML element to use. */
as?: SpotlightTag;
/** The background colour. */
color?: SpotlightColor;
} & PropsWithChildren<HTMLAttributes<HTMLElement>>;
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-containers-spotlight--docs Spotlight docs at Amsterdam Design System}
*/
export declare const Spotlight: import("react").ForwardRefExoticComponent<{
/** The HTML element to use. */
as?: SpotlightTag;
/** The background colour. */
color?: SpotlightColor;
} & HTMLAttributes<HTMLElement> & {
children?: import("react").ReactNode | undefined;
} & import("react").RefAttributes<any>>;
export {};