Components
Classes
Types
No results found.
If this is a bug, please report it.
Scroll
Open
The Text component, like the paragraph and heading, is an inscrutible relic that should never have been attempted. Just use an actual text element.
<Text fontClass="display1" tag="footer" color="primary">
Hello World
</Text>
Note: Other React frameworks are not currently supported, but they might still work. Try at your own risk.
Method | Instructions |
---|---|
LiftKit CLI |
From any Next.js project, run the following command in your terminal.
npm run add text
content_copy
|
Github | open_in_new View on Github |
Method | Instructions |
---|---|
Webflow | open_in_new Clone from Made In Webflow |
Figma | open_in_new Clone from Figma Community |
Props unique to this component.
Name | Required | Type | Description | Default Val |
---|---|---|---|---|
className | no | string | Optional CSS class name (controlled rendering order) | undefined |
color | no | LkColor | Color of the text element | undefined |
content | no | string | Text content to render inside the element | undefined |
fontClass | no | LkFontClass | Font style class to apply | undefined |
tag | no | LkSemanticTag | Semantic tag to render (e.g. h1, p, div, etc.) | undefined |
Props with globally-defined behavior that are used in multiple components.
Common Props | Status |
---|---|
{children} | Supported |
Native HTML attributes | Supported |