Vulcan/packages/vulcan-ui-bootstrap/lib/components/forms/Default.jsx
2019-01-24 18:01:53 +09:00

12 lines
439 B
JavaScript

import React from 'react';
import { Form } from 'react-bootstrap';
import { Components, registerComponent } from 'meteor/vulcan:core';
const Default = ({ refFunction, inputProperties }) => (
<Components.FormItem {...inputProperties}>
<Form.Control {...inputProperties} ref={refFunction} type="text" />
</Components.FormItem>
);
registerComponent('FormComponentDefault', Default);
registerComponent('FormComponentText', Default);