UNPKG

@payfit/unity-components

Version:

20 lines (19 loc) • 924 B
import { ReactNode } from 'react'; import { ToggleSwitchGroupProps } from '../toggle-switch-group/ToggleSwitchGroup.js'; export interface ToggleSwitchGroupFieldProps extends ToggleSwitchGroupProps { /** Helper text to display below the group. */ helperText?: ReactNode; /** Optional content displayed under the whole field (not the group). */ contextualLink?: ReactNode; children: ReactNode; } /** * Composite TanStack field for a group of toggle switches. * * `ToggleSwitchGroupField` assembles a complete field using * `FormField`, the TanStack‑controlled `ToggleSwitchGroup`, * and the feedback area. Render it inside `<form.AppField name="…">` to bind * to the form state and validation. */ declare const ToggleSwitchGroupField: import('react').ForwardRefExoticComponent<ToggleSwitchGroupFieldProps & import('react').RefAttributes<HTMLFieldSetElement>>; export { ToggleSwitchGroupField };