UNPKG

jb-checkbox

Version:
30 lines (29 loc) 1.2 kB
import React, { type PropsWithChildren, type ForwardedRef } from 'react'; import 'jb-checkbox'; import type { JBCheckboxWebComponent, SizeVariants } from 'jb-checkbox'; import { type EventProps } from './events-hook.js'; import { type JBCheckboxAttributes } from './attributes-hook.js'; import type { JBElementStandardProps } from 'jb-core/react'; export declare function JBCheckbox(props: Props): React.JSX.Element; export declare namespace JBCheckbox { var displayName: string; } declare module "react" { namespace JSX { interface IntrinsicElements { 'jb-checkbox': JBSwitchType; } interface JBSwitchType extends React.DetailedHTMLProps<React.HTMLAttributes<JBCheckboxWebComponent>, JBCheckboxWebComponent> { class?: string; name?: string; label?: string | null; } } } type JBCheckboxProps = { label?: string | null; size?: SizeVariants; ref?: ForwardedRef<JBCheckboxWebComponent | null | undefined>; }; export type Props = EventProps & PropsWithChildren<JBCheckboxProps> & JBCheckboxAttributes & JBElementStandardProps<JBCheckboxWebComponent, keyof EventProps & JBCheckboxAttributes>; export {};