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

665 B

FormSection

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

Usage

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

Props

Name Type Default Description
children JSX.Element JSX.Element[] undefined
description String undefined The description to be used beneath the section title.
title String undefined The title of the form section.