UNPKG

@atlaskit/form

Version:

A form allows people to input information.

25 lines 757 B
/* label.tsx generated by @compiled/babel-plugin v3.0.2 */ import "./label.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; var fieldsetLabelStyles = null; /** * __Label__ * * A label represents a caption for an item in a user interface. * * It's recommended that a label has a `space.050` spacing above its associated * control element. */ export var Label = function Label(_ref) { var children = _ref.children, htmlFor = _ref.htmlFor, id = _ref.id, testId = _ref.testId; return /*#__PURE__*/React.createElement("label", { id: id, htmlFor: htmlFor, "data-testid": testId, className: ax(["_11c8wadc _1e0c1o8l _syazazsu _k48pwu06 _6rth1b66 _1pfhze3t"]) }, children); };