Text
Provides consistent sizing, spacing, and colour to written content.
Props
color
GoabTextColor
Sets the text colour.
Defaults to
primary.
id
string
Sets the id attribute on the element.
maxWidth
GoabTextMaxWidth
Sets the max width.
Defaults to
65ch.
size
GoabTextSize
Overrides the text size.
tag
GoabTextTextElement | GoabTextHeadingElement
The HTML element to render. Use semantic elements like 'h1'-'h6' for headings.
mt, mr, mb, ml
Spacing
Apply margin to the top, right, bottom, and/or left of the component.
Types
Tip
Use color='secondary' for supporting text that's less prominent than the main content.
Screen Readers
Warning
Use semantic heading tags (h1-h5) with GoabText for proper document structure and screen reader navigation.