Vulcan/packages/vulcan-ui-bootstrap/lib/components/forms/Default.jsx

13 lines
476 B
React
Raw Normal View History

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