Using Grommet for HPE?See Accordion examples and guidance.
string
"a user friendly label for screen readers"
number
0
array
[0, 2]
string
"start"
"center"
"end"
"stretch"
"baseline"
string
"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
object
{ vertical: "...", horizontal: "...", top: "...", bottom: "...", left: "...", right: "..." }
object
{ tabContents: "Tab Contents" }
At its core, the Accordion component is a regular <div> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for div elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
AccordionPanel
an accordion panel.
node
(renderHeader('Header 2'))
At its core, the AccordionPanel component is a regular <div> element. Thus, both DOM and React properties, methods, and events are accessible. To read up on all of the possible DOM attributes and types available for div elements, check out this MDN Web Documents page. To learn more about DOM events and methods, you can read more on the MDN Web Events documentation page.
Also, feel free to read about the types of React events available, or see how DOM attributes change in React. Working in tandem with Styled Components, you also have access to the as property.
string
"background-contrast"
object
{ dark: "light-4", light: "dark-3" }
object
{ color: "neutral-1", dark: true, opacity: true, position: "bottom", repeat: "no-repeat", size: "cover", image: "url(//my.com/assets/img.png)" }
string
"brand"
object
{ dark: "light-4", light: "dark-3" }
string
"small"
"control"
{ dark: "string", light: "string" }
string
"border"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
"xsmall"
"small"
"medium"
"large"
"xlarge"