joyent-portal/packages/ui-toolkit/src/form/checkbox.js

21 lines
372 B
JavaScript
Raw Normal View History

import BaseInput from './base/input';
import BaseToggle from './base/toggle';
import Baseline from '../baseline';
import React from 'react';
const Checkbox = Baseline(
BaseInput(
BaseToggle({
type: 'checkbox'
})
)
);
/**
* @example ./usage-checkbox.md
*/
2017-06-12 01:58:22 +03:00
export default ({ children, ...rest }) =>
<Checkbox {...rest}>
{children}
2017-06-12 01:58:22 +03:00
</Checkbox>;