2017-08-19 10:41:08 +09:00
|
|
|
import React from 'react';
|
2019-01-26 21:21:09 +09:00
|
|
|
import Form from 'react-bootstrap/lib/Form';
|
2019-01-24 18:01:53 +09:00
|
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
2017-08-19 10:41:08 +09:00
|
|
|
|
2019-01-24 18:01:53 +09:00
|
|
|
const TextareaComponent = ({ refFunction, inputProperties, ...properties }) => (
|
|
|
|
<Components.FormItem {...inputProperties}>
|
|
|
|
<Form.Control as="textarea" ref={refFunction} {...inputProperties} />
|
|
|
|
</Components.FormItem>
|
|
|
|
);
|
2017-08-19 10:41:08 +09:00
|
|
|
|
2019-01-24 18:01:53 +09:00
|
|
|
registerComponent('FormComponentTextarea', TextareaComponent);
|