design-react-kit
Version:
Componenti React per Bootstrap 5
18 lines (17 loc) • 740 B
TypeScript
import React, { ElementType, FC, ReactNode } from 'react';
import { CSSModule } from 'reactstrap/types/lib/utils';
import { InputProps } from '../Input/Input';
export interface ToggleProps extends InputProps {
/** Label da mostrare per il componente */
label: string | ReactNode;
/** Dimensioni ammissibili per il componente */
bsSize?: 'lg' | 'sm';
/** Utilizzarlo in caso di utilizzo di componenti personalizzati */
tag?: ElementType;
/** Da utilizzare per impostare un riferimento all'elemento DOM */
innerRef?: React.Ref<HTMLInputElement>;
/** Oggetto contenente la nuova mappatura per le classi CSS. */
cssModule?: CSSModule;
testId?: string;
}
export declare const Toggle: FC<ToggleProps>;