Porsche Design SystemSearchNavigate to GitHub repository of Porsche Design SystemOpen sidebar
ConfiguratorExamplesUsageAccessibilityAPI
Textarea Table of ContentsPropertiestype BreakpointCustomizable<T> = { base: T; xs?: T; s?: T; m?: T; l?: T; xl?: T; xxl?: T; };PropertyAttributeDescriptionTypeDefaultautoComplete auto-completeProvides a hint to the browser about what type of data the field expects, which can assist with autofill features (e.g., autocomplete='on').stringundefinedcounter counterShow or hide the character counter.booleanfalsedescription descriptionSupplementary text providing more context or explanation for the textarea.string''disabled disabledA boolean value that, if present, makes the textarea unusable and unclickable. The value will not be submitted with the form.booleanfalseform formSpecifies the id of the
element that the textarea belongs to (useful if the textarea is not a direct descendant of the form).stringundefinedhideLabel 🛠hide-labelControls the visibility of the label.boolean
BreakpointCustomizable<boolean>
false
label labelText content for a user-facing label.string''maxLength max-lengthA non-negative integer specifying the maximum number of characters the user can enter into the textarea.numberundefinedmessage messageDynamic feedback text for validation or status.string''minLength min-lengthA non-negative integer specifying the minimum number of characters required for the textarea's value to be considered valid.numberundefinedname nameThe name of the textarea, used when submitting the form data.stringundefinedplaceholder placeholderA string that provides a brief hint to the user about what kind of information is expected in the field (e.g., placeholder='Write your message here...'). This text is displayed when the textarea is empty.string''readOnly read-onlyA boolean value that, if present, makes the textarea uneditable by the user, but its value will still be submitted with the form.booleanfalserequired requiredA boolean value that, if present, indicates that the textarea must be filled out before the form can be submitted.booleanfalseresize resizeControls whether the textarea is resizable and in which direction.type TextareaResize =
'none'
'both'
'horizontal'
'vertical'
'block'
'inline'
'vertical'
rows rowsThe number of rows of the textarea.number7spellCheck spell-checkSpecifies whether the textarea should have its spelling and grammar checkedbooleanundefinedstate stateIndicates the validation or overall status of the textarea component.type TextareaState =
'none'
'error'
'success'
'none'
theme themeControls the visual appearance of the component.type Theme =
'light'
'dark'
'auto'
'light'
value valueThe textarea value.string''wrap wrapHandles wrapping behavior of elements.type TextareaWrap =
'hard'
'soft'
'off'
'soft'
EventsEventDescriptionTypeblur Emitted when the textarea has lost focus.type TextareaBlurEventDetail = Event
CustomEvent<TextareaBlurEventDetail>
change Emitted when the textarea loses focus after its value was changed.type TextareaChangeEventDetail = Event
CustomEvent<TextareaChangeEventDetail>
input Emitted when the value has been changed as a direct result of a user action.type TextareaInputEventDetail = InputEvent
CustomEvent<TextareaInputEventDetail>
SlotsSlotDescriptionisRequiredaltPropallowedTagNames<slot name="label"> Shows a label. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed.<slot name="description"> Shows a description. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed.<slot name="message"> Shows a state message. Only [phrasing content](https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Content_categories#Phrasing_content) is allowed.
Global settingsThemeChanges the theme of the application and any Porsche Design System component. It's possible to choose between forced theme light and dark. It's also possible to use auto, which applies light or dark theme depending on the operating system settings automatically.LightDarkAuto (sync with operating system)DirectionThe dir global attribute in HTML changes the direction of text and other content within an element. It's most often used on the <html> tag to set the entire page's direction, which is crucial for supporting languages that are written from right to left (RTL), such as Arabic and Hebrew. For example, using <html dir="rtl"> makes the entire page display from right to left, adjusting the layout and text flow accordingly.LTR (left-to-right)RTL (right-to-left)Text ZoomTo ensure accessibility and comply with WCAG 2.2 AA standards, it is mandatory for web content to support text resizing up to at least 200% without loss of content or functionality. Using relative units like rem is a best practice for achieving this, as they allow the text to scale uniformly based on the user's browser settings.100%130%150%200%