UNPKG

carbon-react

Version:

A library of reusable React components for easily building user interfaces.

17 lines (16 loc) 578 B
import React from "react"; import { MarginProps } from "styled-system"; import { TagProps } from "../../__internal__/utils/helpers/tags"; export interface FieldsetProps extends MarginProps, TagProps { /** Child elements */ children?: React.ReactNode; /** The text for the fieldset's legend element. */ legend?: string; /** Flag to configure fields as mandatory. */ required?: boolean; } export declare const Fieldset: { ({ children, legend, required, ...rest }: FieldsetProps): React.JSX.Element; displayName: string; }; export default Fieldset;