@payfit/unity-components
Version:
20 lines (19 loc) • 1 kB
TypeScript
import { ReactNode } from 'react';
import { TanstackToggleSwitchGroupProps } from '../toggle-switch-group/TanstackToggleSwitchGroup.js';
export interface TanstackToggleSwitchGroupFieldProps extends TanstackToggleSwitchGroupProps {
/** 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.
*
* `TanstackToggleSwitchGroupField` assembles a complete field using
* `TanstackFormField`, the TanStack‑controlled `TanstackToggleSwitchGroup`,
* and the feedback area. Render it inside `<form.AppField name="…">` to bind
* to the form state and validation.
*/
declare const TanstackToggleSwitchGroupField: import('react').ForwardRefExoticComponent<TanstackToggleSwitchGroupFieldProps & import('react').RefAttributes<HTMLFieldSetElement>>;
export { TanstackToggleSwitchGroupField };