UNPKG

@guardian/threads

Version:
9 lines 523 B
import React from 'react'; import styles from './Form.module.css'; export var FormRow = function (_a) { var title = _a.title, children = _a.children, htmlFor = _a.htmlFor, horizontal = _a.horizontal; return (React.createElement("div", { className: styles.wrap }, title && (React.createElement("label", { className: styles.label, htmlFor: htmlFor }, title)), React.createElement("div", { "data-horizontal": horizontal, className: styles.children }, children))); }; //# sourceMappingURL=FormRow.js.map