Text
Show plain text in a <span> element.
@solara.component
def Text(text, style: Union[str, Dict[str, str], None] = None, classes: List[str] = []):
...
For formatted text, use Markdown.
Example
import solara
@solara.component
def Page():
solara.Text("Hello world", style={"color": "green"})
Hello world
Live output
Arguments
text: The text to show.style: CSS style to apply, as a string or a dictionary.classes: List of CSS classes to apply.