apps/www/content/docs/components/fieldset.mdx
import { Fieldset } from "@chakra-ui/react"
<Fieldset.Root>
<Fieldset.Legend />
<Fieldset.Content />
</Fieldset.Root>
Use the disabled prop to disable the fieldset to disable all input elements
within the fieldset.
Use the invalid prop to mark the fieldset as invalid. This will show the error
text.
<ExampleTabs name="fieldset-with-invalid" />Note: You need to pass the
invalidprop to theFieldcomponent within the fieldset to make each input element invalid.
Explore the Fieldset component parts interactively. Click on parts in the
sidebar to highlight them in the preview.