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