Using Grommet for HPE?See Tabs examples and guidance.
string
"a user friendly label for screen readers"
number
0
string
"start"
"center"
"end"
"stretch"
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 Tabs 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
{ xsmall: "1px", small: "2px", medium: "4px", large: "12px", xlarge: "24px", }
string
"rgba(0, 0, 0, 0.33)"
object
{ dark: "rgba(255, 255, 255, 0.33)", light: "rgba(0, 0, 0, 0.33)" }
string
"neutral-1"
"url(//my.com/assets/img.png)"
object
{ color: "neutral-1", dark: true, image: "url(//my.com/assets/img.png)" position: "bottom", opacity: true, repeat: "no-repeat", size: "cover", light: "string" }
"weak"
"medium"
"strong"
boolean
number
any CSS for background-position
"no-repeat"
"repeat"
"string"
"cover"
"contain"
"string"
string
"start"
"center"
"end"
"stretch"
"baseline"
string
"brand"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
css`color: 'blue'`
function
(props) => {}
string
css`color: 'blue'`
function
(props) => {}
Tab
one tab within tabs
boolean
true
false
At its core, the Tab component is a regular <button> 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 button 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
"neutral-1"
"url(//my.com/assets/img.png)"
object
{ color: "neutral-1", dark: true, image: "url(//my.com/assets/img.png)" position: "bottom", opacity: true, repeat: "no-repeat", size: "cover", light: "string" }
"weak"
"medium"
"strong"
boolean
number
any CSS for background-position
"no-repeat"
"repeat"
"string"
"cover"
"contain"
"string"
object
{ side: "bottom", size: "small", color: { dark: "accent-1", light: "brand", }, active: { color: { dark: "white", light: "black", }, }, hover: { color: { dark: "white", light: "black", }, // extend: undefined, }, }
string
"brand"
object
{ dark: "string", light: "string" }
string
"control"
object
{ dark: "string", light: "string" }
string
"brand"
object
{ dark: "string", light: "string" }
string
"neutral-1"
"url(//my.com/assets/img.png)"
object
{ color: "neutral-1", dark: true, image: "url(//my.com/assets/img.png)" position: "bottom", opacity: true, repeat: "no-repeat", size: "cover", light: "string" }
"weak"
"medium"
"strong"
boolean
number
any CSS for background-position
"no-repeat"
"repeat"
"string"
"cover"
"contain"
"string"
string
"black"
object
{ dark: "white", light: "black" }
string
css`color: 'blue'`
function
(props) => {}