Back to Woocommerce

README

packages/js/components/src/form-section/README.md

10.8.0-dev664 B
Original Source

FormSection

A layout wrapper to help align form title, description, and fields.

Usage

jsx
<FormSection
    title="My form section"
    description="Some text to describe what this section covers"
>
    <Card>
        <CardBody>
            My form fields
        </CardBody>
    </Card>
</FormSection>

Props

NameTypeDefaultDescription
childrenJSX.ElementJSX.Element[]undefined
descriptionStringundefinedThe description to be used beneath the section title.
titleStringundefinedThe title of the form section.