Using Grommet for HPE?See TextArea examples and guidance.
Custom label to be used by screen readers. When provided, an aria-label will be added to the element.
string
"a user friendly label for screen readers"
Whether this is a plain textarea with no border or padding. Only use this when the containing context provides sufficient affordance.
boolean
true
false
The size of the text.
string
"xsmall"
"small"
"medium"
"large"
"xlarge"
"xxlarge"
"2xl"
"3xl"
"4xl"
"5xl"
"6xl"
"string"
At its core, the TextArea component is a regular <textarea> 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 textarea 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.
The color of the border.
string
A hex, name, or rgb value.
"brand"
object
An object with a color for dark and light modes.
{ dark: "rgba(255, 255, 255, 0.33)", light: "rgba(0, 0, 0, 0.33)" }
The border color of the component when in focus.
string
A hex, name, or rgb value.
"focus"
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
The outline color around the component when in focus.
string
A hex, name, or rgb value.
"brand"
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
The shadow color around the component when in focus.
string
"focus"
object
An object with a color for dark and light modes.
{ dark: "string", light: "string" }
The font-weight of the text. This value will only be applied if global.input.weight is undefined.
string
"bold"
number
600
This value has been deprecated and replaced by global.input.font.weight.
string
"bold"
number
300
The padding of the text.
string
"12px"
object
An object specifying padding for different sides of the component.
{ top: "string", bottom: "string", left: "string", right: "string", horizontal: "string", vertical: "string" }
Any additional style for an input.
string
Any CSS.
css`color: 'blue'`
function
(props) => {}