reflex/pynecone/components/typography/highlight.py
2023-05-09 23:01:25 -07:00

16 lines
358 B
Python

"""A heading component."""
from typing import List
from pynecone.components.libs.chakra import ChakraComponent
from pynecone.vars 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]]