woocommerce/packages/js/components/src/form-section
louwie17 6af1695f34
Add/34333 attribute list (#34841)
* Add initial attribute list with dragging and removing functionality

* Fix sortable styling and remove the default selected logic

* Fix css formatting

* Add changelogs

* Add missing question mark

* Add tests

* Some minor CSS updates and move some logic to a util function

* Fix lint issues and add extra test
2022-10-05 13:04:20 -03:00
..
stories Add FormSection component (#34348) 2022-08-18 10:36:43 -07:00
README.md Add FormSection component (#34348) 2022-08-18 10:36:43 -07:00
form-section.scss Add FormSection component (#34348) 2022-08-18 10:36:43 -07:00
form-section.tsx Add/34333 attribute list (#34841) 2022-10-05 13:04:20 -03:00
index.ts Add FormSection component (#34348) 2022-08-18 10:36:43 -07:00

README.md

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.