blob: 72341c8eedc813ed4fe0e27797c30b5e7e88df71 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/**
* External dependencies
*/
import React from 'react';
import classNames from 'classnames';
import { omit } from 'lodash';
/**
* Internal dependencies
*/
import Toggle from 'components/form-toggle';
export default class CompactFormToggle extends React.Component {
static displayName = 'CompactFormToggle';
render() {
return (
<Toggle
{ ...omit( this.props, 'className' ) }
className={ classNames( this.props.className, 'is-compact' ) }
>
{ this.props.children }
</Toggle>
);
}
}
|