@atlaskit/form
Version:
A form allows people to input information.
26 lines (25 loc) • 977 B
JavaScript
/* fieldset.tsx generated by @compiled/babel-plugin v0.39.1 */
import "./fieldset.compiled.css";
import * as React from 'react';
import { ax, ix } from "@compiled/react/runtime";
import { Legend } from './label';
const fieldSetStyles = null;
/**
* __Fieldset__
*
* A fieldset groups a number of fields together. For example, when multiple CheckboxFields share the same name,
* a fieldset can be used to group them together. This makes the form more accessible.
*
* - [Examples](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields)
* - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields)
* - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields)
*/
const Fieldset = ({
children,
legend
}) => {
return /*#__PURE__*/React.createElement("fieldset", {
className: ax(["_1pfhu2gc"])
}, legend && /*#__PURE__*/React.createElement(Legend, null, legend), children);
};
export default Fieldset;