mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
11 lines
451 B
JavaScript
11 lines
451 B
JavaScript
import React from 'react';
|
|
import Form from 'react-bootstrap/lib/Form';
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
|
|
const CheckboxComponent = ({ refFunction, path, inputProperties }) => (
|
|
<Components.FormItem {...inputProperties}>
|
|
<Form.Check {...inputProperties} id={path} ref={refFunction} checked={!!inputProperties.value}/>
|
|
</Components.FormItem>
|
|
);
|
|
|
|
registerComponent('FormComponentCheckbox', CheckboxComponent);
|