import * as React from 'react'; import type { FormRowProps } from '../../FormRow/FormRow'; import { FormRow } from '../../FormRow/FormRow'; import type { FormRowHelperTextOwnProps } from '../../FormRow/FormRowHelperText'; import type { SwitchProps } from '../../Inputs/Switch/Switch'; import { Switch } from '../../Inputs/Switch/Switch'; import type { LabelAfterProps } from '../../LabelAfter/LabelAfter'; import { LabelAfter } from '../../LabelAfter/LabelAfter'; /** @inheritdoc */ export interface SwitchFieldProps extends Omit, Omit, Partial { /** * Label displayed after the input element. */ labelAfter?: LabelAfterProps['label']; } export const SwitchField = React.forwardRef(function SwitchField( { label, labelAfter, tooltip, required, justify, error, warning, hint, labelHidden, ...inputProps }: SwitchFieldProps, ref ) { return ( {labelAfter && } ); });