Text
The text component is used to render text with optional styling.
It supports properties such as color, background, heading levels (h1-h6),
text formatting modifiers (bold, italic, etc.), and inline display.
Usage
Example
import { Box, Text } from "@tiendanube/nube-sdk-jsx";
function MyComponent() {
  return (
    <Box>
      <Text color="red" background="blue">Hello!!</Text>
    </Box>
  );
}
Properties
| Property | Type | Required | Description | 
|---|---|---|---|
| text | string | Yes | The text content to be displayed. | 
| color | string | No | The text color (can be CSS variable like "var(--primary-color)"). | 
| background | string | No | The background color (can be CSS variable like "var(--primary-color)"). | 
| heading | 1|2|3|4|5|6 | No | The heading level (h1-h6). | 
| modifiers | TxtModifier[] | No | Array of text formatting modifiers. | 
| inline | boolean | No | Whether the text should be displayed inline. | 
| style | StyleSheet | No | Custom styles for the text. |