diff --git a/components/checkbox/Group.tsx b/components/checkbox/Group.tsx index fa756207ae..4efcff2a66 100644 --- a/components/checkbox/Group.tsx +++ b/components/checkbox/Group.tsx @@ -1,4 +1,5 @@ import React from 'react'; +import classNames from 'classnames'; import Checkbox from './index'; import PureRenderMixin from 'rc-util/lib/PureRenderMixin'; @@ -20,6 +21,7 @@ export interface CheckboxGroupProps { disabled?: boolean; style?: React.CSSProperties; prefixCls?: string; + className?: string; } export interface CheckboxGroupState { @@ -83,7 +85,7 @@ export default class CheckboxGroup extends React.Component ); + const classString = classNames(prefixCls, className); return ( -
+
{options}
);