--- title: Mark description: "`Mark` is a component that emphasizes a specific part of the text." links: - style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/mark/mark.style.ts - source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/mark - storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-mark--basic --- ```tsx 領域展開無量空処 ``` ## Usage ```tsx import { Mark } from "@yamada-ui/react" ``` ```tsx import { Mark } from "@/components/ui" ``` ```tsx import { Mark } from "@workspaces/ui" ``` ```tsx ``` ### Change Variant ```tsx {(variant, index) => ( {toTitleCase(variant)} )} ``` ### Change Color Scheme ```tsx {(colorScheme, index) => ( {toTitleCase(colorScheme)} )} ``` ## Props | Prop | Default | Type | Description | | ------------- | ---------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ | | `as` | - | `As` | The HTML element to render. | | `asChild` | - | `boolean` | Merges its props onto its immediate child. | | `css` | - | `CSSObject \| CSSObject[]` | The CSS object. | | `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. | | `variant` | `"subtle"` | `"accent" \| "solid" \| "subtle" \| "text"` | The variant of the component. |