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

12 lines
394 B
React
Raw Normal View History

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';
2019-01-24 18:01:53 +09:00
const UrlComponent = ({ refFunction, inputProperties, ...properties }) => (
<Components.FormItem>
<Form.Control ref={refFunction} {...inputProperties} type="url" />
</Components.FormItem>
);
2019-01-24 18:01:53 +09:00
registerComponent('FormComponentUrl', UrlComponent);