mirror of
https://github.com/vale981/Vulcan
synced 2025-03-09 12:16:37 -04:00
11 lines
477 B
JavaScript
11 lines
477 B
JavaScript
import React from 'react';
|
|
import Form from 'react-bootstrap/Form';
|
|
import { Components, registerComponent } from 'meteor/vulcan:core';
|
|
|
|
const EmailComponent = ({ refFunction, inputProperties, itemProperties }) => (
|
|
<Components.FormItem path={inputProperties.path} label={inputProperties.label} {...itemProperties}>
|
|
<Form.Control {...inputProperties} ref={refFunction} type="email" />
|
|
</Components.FormItem>
|
|
);
|
|
|
|
registerComponent('FormComponentEmail', EmailComponent);
|