apps/www/content/docs/components/text.mdx
import { Text } from "@chakra-ui/react"
<Text>This is the text component</Text>
Use the fontSize or textStyle prop to change the size of the text.
Use the fontWeight prop to change the weight of the text.
Use the truncate prop to truncate the text after a single line.
Use the lineClamp prop to truncate the text after a certain number of lines.
Here's how to access the underlying element reference
const Demo = () => {
const ref = useRef<HTMLParagraphElement | null>(null)
return <Text ref={ref}>This is the text component</Text>
}