UNPKG

@cavilha/toggle

Version:

A basic select component that allows the selection of a single option

13 lines (12 loc) 504 B
import React from 'react'; import * as S from './Toggle.styles'; export declare type ToggleProps = React.ComponentProps<typeof S.Toggle> & { label: string; alternativeLabel?: string; count?: number; onChange?: (pressed: boolean) => void; isDisabled?: boolean; isPressed?: boolean; } & S.Variants; declare const Toggle: ({ label, count, alternativeLabel, variation, onChange, isDisabled, isPressed, size, ...props }: ToggleProps) => JSX.Element; export default Toggle;