mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
18 lines
396 B
TypeScript
18 lines
396 B
TypeScript
|
import { Checkbox, CheckboxProps } from '@chakra-ui/react';
|
||
|
|
||
|
type IAICheckboxProps = CheckboxProps & {
|
||
|
label: string;
|
||
|
styleClass?: string;
|
||
|
};
|
||
|
|
||
|
const IAICheckbox = (props: IAICheckboxProps) => {
|
||
|
const { label, styleClass, ...rest } = props;
|
||
|
return (
|
||
|
<Checkbox className={`invokeai__checkbox ${styleClass}`} {...rest}>
|
||
|
{label}
|
||
|
</Checkbox>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default IAICheckbox;
|