@gear-js/vara-ui
Version:
React UI components used across Vara applications
11 lines (10 loc) • 419 B
TypeScript
import { ComponentPropsWithRef, ReactNode } from 'react';
type Props = Omit<ComponentPropsWithRef<'input'>, 'size'> & {
label: string;
type?: 'switch' | 'checkbox';
size?: 'small' | 'default';
error?: ReactNode;
};
declare const Checkbox: ({ label, className, type, size, error, ...attrs }: Props) => import("react/jsx-runtime").JSX.Element;
export { Checkbox };
export type { Props as CheckboxProps };