Using Grommet for HPE?See NameValueList examples and guidance.
The NameValueList component can be customized with any of the properties available in Grid.
string
"start"
"center"
"end"
"baseline"
"stretch
string
"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
object
{ vertical: "...", horizontal: "...", top: "...", bottom: "...", left: "...", right: "..." }
object
{ direction: "column" }
{ direction: "column-reverse" }
{ direction: "row" }
At its core, the NameValueList component is a regular <dl> 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 dl 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.
object
{ column: 'large', row: 'small' }
string
"small"
object
{ column: 'large', row: 'medium' }
string
"small"
NameValuePair
one pair within the namevaluelist
string
"start"
"center"
"end"
"stretch"
"baseline"
node
<Anchor>jane.doe@email.com</Anchor>
number
500
string
"Grommet helps you build responsive and accessible mobile-first projects."
At its core, the NameValuePair 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.