Text
Component
Provides consistent sizing, spacing, and colour to written content.
<GoAText>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
</GoAText>
Properties
as
h1 | h2 | h3 | h4 | h5 | span | div | p
Sets the tag and text size. Defaults to
div
.size
heading-xl | heading-l | heading-m | heading-s | heading-xs | body-l | body-m | body-s | body-xs
Overrides the text size from the 'as' property.
maxWidth
string
Sets the max width. Defaults to
65ch
.color
primary | secondary
Sets the text colour. Defaults to
primary
.mt,mr,mb,ml
none | 3xs | 2xs | xs | s | m | l | xl | 2xl | 3xl | 4xl
Apply margin to the top, right, bottom, and/or left of the component.
Book time in drop in hours