Module

SectionTop

Methods

# inner renderFormDescription(description) → {React.ReactElement}

Default function to render the form description
Parameters:
Name Type Description
description string | React.ReactElement

View Source stories/Section/SectionTop.jsx, line 12

- the rendered description
React.ReactElement

# inner renderFormTitle(description) → {React.ReactElement}

Default function to render the form description
Parameters:
Name Type Description
description string | React.ReactElement

View Source stories/Section/SectionTop.jsx, line 20

- the rendered description
React.ReactElement

# inner SectionTop(props) → {React.ReactElement}

Top portion of a section will render the section title and description
Parameters:
Name Type Description
props props props object
title string the title text
description string the description text
index number the index of the section (if rendering via a loop)
renderTitle renderSectionTitle a function to render title (default is to render the title as "sectionHeader")
renderDescription renderSectionDescription a function to render a description (default is to render the description as "sectionDescription")

View Source stories/Section/SectionTop.jsx, line 28

- the rendered section top
React.ReactElement
Examples
<SectionTop title="Section Title" description="Section Description" />
<SectionTop title="Section Title" renderDescription={(description) => <Typography variant="baconBits">{description}</Typography>} />