@amsterdam/design-system-react
Version:
All React components from the Amsterdam Design System. Use it to compose pages in your website or application.
12 lines (11 loc) • 724 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { clsx } from 'clsx';
import { forwardRef } from 'react';
import { SelectOption } from './SelectOption';
import { SelectOptionGroup } from './SelectOptionGroup';
const SelectRoot = forwardRef(({ children, className, invalid, ...restProps }, ref) => (_jsx("select", { ...restProps, "aria-invalid": invalid || undefined, className: clsx('ams-select', className), ref: ref, children: children })));
SelectRoot.displayName = 'Select';
/**
* @see {@link https://designsystem.amsterdam/?path=/docs/components-forms-select--docs Select docs at Amsterdam Design System}
*/
export const Select = Object.assign(SelectRoot, { Group: SelectOptionGroup, Option: SelectOption });