UNPKG

jb-checkbox

Version:
32 lines (31 loc) 1.14 kB
import React, { PropsWithChildren } from 'react'; import 'jb-checkbox'; import { JBCheckboxWebComponent, ValidationValue } from 'jb-checkbox'; import { type ValidationItem } from 'jb-validation'; import { EventProps } from './events-hook.js'; declare global { namespace JSX { interface IntrinsicElements { 'jb-checkbox': JBSwitchType; } interface JBSwitchType extends React.DetailedHTMLProps<React.HTMLAttributes<JBCheckboxWebComponent>, JBCheckboxWebComponent> { class?: string; name?: string; "label"?: string; } } } type JBCheckboxProps = { style?: string; name?: string; className?: string; value?: boolean | null | undefined; label?: string | null | undefined; validationList?: ValidationItem<ValidationValue>[] | null; disabled?: boolean; }; export type Props = EventProps & PropsWithChildren<JBCheckboxProps>; export declare const JBCheckbox: React.ForwardRefExoticComponent<EventProps & JBCheckboxProps & { children?: React.ReactNode; } & React.RefAttributes<unknown>>; export {};