import React, { InputHTMLAttributes } from "react"; import { FormFieldProps } from "../useFormField.js"; export interface SwitchProps extends Omit, Omit, "size"> { /** * Switch-label. */ children: React.ReactNode; /** * If enabled shows the label and description for screenreaders only. */ hideLabel?: boolean; /** * Toggles loading state with loader-component on switch. */ loading?: boolean; /** * Positions switch on left/right side of label. * @default "left" */ position?: "left" | "right"; /** * Adds a description to extend labeling of Switch. */ description?: string; } /** * A component that displays a switch input field. * * @see [📝 Documentation](https://aksel.nav.no/komponenter/core/switch) * @see 🏷️ {@link SwitchProps} * * @example * ```jsx * Varsle med SMS * ``` */ export declare const Switch: React.ForwardRefExoticComponent>; export default Switch;