* ui: migrating old components -> ant * ui: moving input, tooltip, toggler, checkbox... -> Toggler\s*(.)? from 'UI * ui: more components moved * ui: move popover to ant
16 lines
347 B
TypeScript
16 lines
347 B
TypeScript
import React from 'react';
|
|
import { Checkbox as AntCheckbox } from 'antd'
|
|
|
|
interface Props {
|
|
className?: string;
|
|
label?: string;
|
|
[x: string]: any;
|
|
}
|
|
export default (props: Props) => {
|
|
const { className = '', label = '', ...rest } = props;
|
|
return (
|
|
<AntCheckbox {...rest}>
|
|
{label}
|
|
</AntCheckbox>
|
|
);
|
|
};
|