jb-checkbox
Version:
checkbox web component
28 lines (27 loc) • 1.06 kB
TypeScript
import React, { type PropsWithChildren, type CSSProperties } from 'react';
import 'jb-checkbox';
import { JBCheckboxWebComponent } from 'jb-checkbox';
import { EventProps } from './events-hook.js';
import { type JBCheckboxAttributes } from './attributes-hook.js';
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;
}
}
}
type JBCheckboxProps = {
style?: CSSProperties;
label?: string | null | undefined;
className?: string;
};
export type Props = EventProps & PropsWithChildren<JBCheckboxProps> & JBCheckboxAttributes;
export declare const JBCheckbox: React.ForwardRefExoticComponent<EventProps & JBCheckboxProps & {
children?: React.ReactNode | undefined;
} & JBCheckboxAttributes & React.RefAttributes<unknown>>;
export {};