Text
Text is the base component for any sort of text. Consumers of this component can control, the color, size, weight, and spacing of Text. Use this component for generic, and non-hierarchical text that is to be displayed on a page, or as part of other complex components or UI patterns.
- On this page
Properties
align
Controls the alignment of text.
"left" | "center" | "right" | "justify"
size
Controls the size of the text based on pre-configured Dracula UI sizes.
"md" | "lg" | "sm" | "xs"
weight
Controls the weight of the text.
"normal" | "semibold" | "bold"
lineHeight
Controls the line height of a text.
"md" | "lg" | "sm" | "xs" | "xl"
color
Controls the color of the text
"purpleCyan" | "yellowPink" | "cyanGreen" | "pinkPurple" | "cyan" | "green" | "orange" | "pink" | "purple" | "red" | "yellow" | "white" | "black" | "blackSecondary" | "blackLight"
as
The HTML element to be used
"a" | "span" | "p"