UNPKG

surf-design-system

Version:
14 lines (13 loc) 552 B
import React from 'react'; import { sizeSDS, bodyRelativePosition } from '../types/common'; export interface SwitchProps { id?: string; selected?: boolean; disabled?: boolean; size?: sizeSDS; labelPosition?: bodyRelativePosition; label?: React.ReactNode; onClick?: (e: React.ChangeEvent<HTMLInputElement>) => void; tabIndex?: number; } export default function Switch({ id, selected, disabled, size, label, labelPosition, onClick, tabIndex, }: SwitchProps): import("@emotion/react/jsx-runtime").JSX.Element;