mirror of
https://github.com/vale981/Vulcan
synced 2025-03-10 12:36:39 -04:00
19 lines
358 B
React
19 lines
358 B
React
![]() |
/*
|
||
|
|
||
|
Layout for a single form item
|
||
|
|
||
|
*/
|
||
|
|
||
|
import React from 'react';
|
||
|
import { Form } from 'react-bootstrap';
|
||
|
import { registerComponent } from 'meteor/vulcan:core';
|
||
|
|
||
|
const FormItem = ({ path, label, children }) => (
|
||
|
<Form.Group controlId={path}>
|
||
|
<Form.Label>{label}</Form.Label>
|
||
|
{children}
|
||
|
</Form.Group>
|
||
|
);
|
||
|
|
||
|
registerComponent('FormItem', FormItem);
|