reflex/pynecone/components/typography/highlight.py
2023-02-09 11:33:18 -08:00

16 lines
357 B
Python

"""A heading component."""
from typing import List
from pynecone.components.libs.chakra import ChakraComponent
from pynecone.var import Var
class Highlight(ChakraComponent):
"""Highlights a specific part of a string."""
tag = "Highlight"
# A query for the text to highlight. Can be a string or a list of strings.
query: Var[List[str]]