UNPKG

@atlaskit/form

Version:

A form allows people to input information.

33 lines (32 loc) • 1.49 kB
/* form-header.tsx generated by @compiled/babel-plugin v3.0.4 */ import "./form-header.compiled.css"; import * as React from 'react'; import { ax, ix } from "@compiled/react/runtime"; import Heading from '@atlaskit/heading/heading'; import { fg } from '@atlaskit/platform-feature-flags/fg'; var formHeaderContentStyles = null; var semanticFormHeaderContentStyles = null; var formHeaderDescriptionStyles = null; var semanticFormHeaderDescriptionStyles = null; /** * __Form header__. * * A form header contains the form component's heading and subheadings. This provides the correct padding * and styling for it. * * - [Examples](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout) * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout) * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/layout). */ export var FormHeader = function FormHeader(_ref) { var children = _ref.children, description = _ref.description, title = _ref.title; return /*#__PURE__*/React.createElement("div", null, title && /*#__PURE__*/React.createElement(Heading, { size: "large" }, title), description && /*#__PURE__*/React.createElement("div", { className: ax(["_1pfhu2gc", fg('platform-semantic-spacing') && "_1pfhslki"]) }, description), children && /*#__PURE__*/React.createElement("div", { className: ax(["_1ul91osq _1pfhu2gc", fg('platform-semantic-spacing') && "_1pfhslki"]) }, children)); };