Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/components/Fieldset/FieldsetLegend"

Index

Interfaces

Functions

Functions

Const FieldsetLegend

  • A component to set a legend for a Fieldset by passing in via the {@link FieldsetProps.legend} prop.

    // Creating a fieldset with a legend
    <Fieldset
      id="fieldsetId"
      className="fieldsetClass"
      describedBy="fieldsetDescribedBy"
      role="fieldsetRole"
      legend={
        <FieldsetLegend id="legendId" className="legendClass" isPageHeading>
          children
        </FieldsetLegend>
      }
    >
      children
    </Fieldset>

    Parameters

    Returns ReactElement

Generated using TypeDoc