@devfamily/admiral
Version:
Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
20 lines (19 loc) • 569 B
TypeScript
/// <reference types="react" />
export interface ChoiceChangeEventTarget extends ChoiceProps {
checked: boolean;
}
export interface ChoiceChangeEvent {
target: ChoiceChangeEventTarget;
event: Event;
}
export declare type ChoiceView = 'primary' | 'ghost';
export interface ChoiceProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange'> {
classNames?: {
wrapper?: string;
input?: string;
inner?: string;
};
view?: ChoiceView;
indeterminate?: boolean;
onChange?: (e: ChoiceChangeEvent) => void;
}