import { JSX } from '@emotion/react/jsx-runtime'; import { FieldsetHTMLAttributes } from 'react'; import { Props } from '../@types/Props.js'; import { ThemeChoiceCardGroup } from './theme.js'; type ChoiceCardColumns = 2 | 3 | 4 | 5; interface ChoiceCardGroupProps extends FieldsetHTMLAttributes, Props { id?: string; /** * Passed as the name attribute for each `` */ name: string; /** * Label describing the `ChoiceCardGroup` */ label?: string; /** * Hide the label text visually */ hideLabel?: boolean; /** * Additional text that appears below the `label` (does nothing without one). */ supporting?: string; /** * If true, users may select more than one choice card (checkbox behaviour). * By default, users may only select a single choice card (radio button behaviour). */ multi?: boolean; /** * If passed, error styling should applies to this choice card group. The string appears as an inline error message. */ error?: string; /** * To render a grid of choice cards, specify the number of columns. * If this prop is not set, cards will appear on a single line. */ columns?: ChoiceCardColumns; children: JSX.Element | JSX.Element[]; /** * A component level theme to override the theme. * The sanctioned colours have been set out by the design system team. * The colours which can be changed are: * * `textLabel`
* `textOptional`
* `textSupporting`
* `textError`
* `textSuccess`
* */ theme?: Partial; } /** * [Storybook](https://guardian.github.io/storybooks/?path=/story/source_react-components-choicecardgroup--default-default-theme) • * [Design System](https://theguardian.design/2a1e5182b/p/65ffe9-choice-card) • * [GitHub](https://github.com/guardian/csnx/tree/main/libs/@guardian/source/src/react-components/choice-card/ChoiceCardGroup.tsx) • * [NPM](https://www.npmjs.com/package/@guardian/source-card) * * The following themes are supported: `choiceCardDefault`. */ declare const ChoiceCardGroup: ({ id, name, label, hideLabel, supporting, multi, error, columns, cssOverrides, children, theme, ...props }: ChoiceCardGroupProps) => JSX.Element; export { ChoiceCardGroup }; export type { ChoiceCardColumns, ChoiceCardGroupProps };