Using Grommet for HPE?See Heading examples and guidance.
string
"a user friendly label for screen readers"
string
"start"
"center"
"end"
"stretch"
"baseline"
string
"brand"
object
{ dark: "string", light: "string" }
string
"1"
"2"
"3"
"4"
"5"
"6"
number
1
2
3
4
5
6
string
"none"
"xxsmall"
"xsmall"
"small"
"medium"
"large"
"xlarge"
object
{ vertical: "...", horizontal: "...", top: "...", bottom: "...", left: "...", right: "..." }
string
"normal"
"anywhere"
"break-word"
string
"small"
"medium"
"large"
"xlarge"
"string"
boolean
true
false
At its core, the Heading component is a regular <h1> 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 h1 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.
At its core, the Heading component is a regular <h2> 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 h2 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.
At its core, the Heading component is a regular <h3> 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 h3 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.
At its core, the Heading component is a regular <h4> 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 h4 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
{ small: { value: 768, borderSize: { xsmall: "1px", small: "2px", medium: "4px", large: "6px", xlarge: "12px" }, edgeSize: { none: "0px", hair: "1px", xxsmall: "2px", xsmall: "3px", small: "6px", medium: "12px", large: "24px", xlarge: "48px" }, size: { xxsmall: "24px", xsmall: "48px", small: "96px", medium: "192px", large: "384px", xlarge: "768px", full: "100%" } }, medium: { value: 1536 }, large: {} }
object
{ none: '0px', hair: '1px', xxsmall: '3px', xsmall: '6px', small: '12px', medium: '24px', large: '48px', xlarge: '96px', responsiveBreakpoint: 'small' }
string
"brand"
object
{ dark: "string", light: "string" }
string
css`color: 'blue'`
function
(props) => {}
object
{ 1: { font: {}, small: { size: "34px", height: "40px", maxWidth: "816px" }, medium: { size: "50px", height: "56px", maxWidth: "1200px" }, large: { size: "82px", height: "88px", maxWidth: "1968px" }, xlarge: { size: "114px", height: "120px", maxWidth: "2736px" } }, 2: { font: {}, small: { size: "26px", height: "32px", maxWidth: "624px" }, medium: { size: "34px", height: "40px", maxWidth: "816px" }, large: { size: "50px", height: "56px", maxWidth: "1200px" }, xlarge: { size: "66px", height: "72px", maxWidth: "1584px" } }, 3: { font: {}, small: { size: "22px", height: "28px", maxWidth: "528px" }, medium: { size: "26px", height: "32px", maxWidth: "624px" }, large: { size: "34px", height: "40px", maxWidth: "816px" }, xlarge: { size: "42px", height: "48px", maxWidth: "1008px" } }, 4: { font: {}, small: { size: "18px", height: "24px", maxWidth: "432px" }, medium: { size: "18px", height: "24px", maxWidth: "432px" }, large: { size: "18px", height: "24px", maxWidth: "432px" }, xlarge: { size: "18px", height: "24px", maxWidth: "432px" } }, 5: { font: {}, small: { size: "16px", height: "22px", maxWidth: "384px" }, medium: { size: "16px", height: "22px", maxWidth: "384px" }, large: { size: "16px", height: "22px", maxWidth: "384px" }, xlarge: { size: "16px", height: "22px", maxWidth: "384px" } }, 6: { font: {}, small: { size: "14px", height: "20px", maxWidth: "336px" }, medium: { size: "14px", height: "20px", maxWidth: "336px" }, large: { size: "14px", height: "20px", maxWidth: "336px" }, xlarge: { size: "14px", height: "20px", maxWidth: "336px" } } }
object
{ width: { min: '200px' }}