Yamada UIにスターをあげる

スター
Yamada UIYamada UIv1.5.1

Highlight

Highlightは、テキスト内の指定された文字列をハイライトするコンポーネントです。デフォルトでは、p要素をレンダリングします。

ソース@yamada-ui/highlight

Props

HighlightProps

query

必須

説明

Can be a single string or an array of strings. These are the terms that are highlighted in the text.

タイプ

string | string[]

align

説明

The CSS text-align property.

タイプ

UIValue<TextAlign>

casing

説明

The CSS text-transform property.

タイプ

UIValue<TextTransform>

decoration

説明

The CSS text-decoration property.

タイプ

UIValue<TextDecoration<0 | (string & {})>>

isFragment

説明

If true, Fragment is used for rendering.

タイプ

boolean

デフォルト

false

markProps

説明

Properties passed to the Mark component which is used to highlight the matched terms.

タイプ

MarkProps

MarkProps

colorScheme

説明

The visual color appearance of the component.

タイプ

"whiteAlpha" | "blackAlpha" | "gray" | "neutral" | "red" | "danger" | "rose" | "pink" | "flashy" | "orange" | "warning" | "amber" | "yellow" | "lime" | "green" | "success" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "primary" | "info" | "link" | "indigo" | "violet" | "secondary" | "purple" | "fuchsia"

デフォルト

secondary

size

説明

The size of the Mark.

タイプ

string

variant

説明

The variant of the Mark.

タイプ

"solid" | "subtle" | "outline" | "text-accent" | "unstyled"

デフォルト

subtle

GitHubでこのページを編集する

Headingフォーム