UNPKG

@payfit/unity-components

Version:

12 lines (11 loc) • 585 B
import { ToggleSwitchProps } from '../toggle-switch/ToggleSwitch.js'; export interface ToggleSwitchFieldProps extends ToggleSwitchProps { /** The label for the toggle switch. */ label: string; /** Helper text to display below the toggle switch label. */ switchHelperText?: string; /** Whether the label is only visible to screen readers. */ isLabelSrOnly?: boolean; } declare const ToggleSwitchField: import('react').ForwardRefExoticComponent<Omit<ToggleSwitchFieldProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>; export { ToggleSwitchField };