Type elements contain general elements to wrap content. Currently, only Text
is available. Text
works the same as a <p>
tag.
import { Text } from 'builtin-react'
<Text>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Text>
// Changing the color
<Text theme={{
font: 'pink',
fontSize: '21px'
}}>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</Text>
Name | Type | Default | Description |
---|---|---|---|
className | string | null | Custom class name to override css |
theme | object | null | Used to change the theme of the component |