DocsComponentsCore
Mark
React example follows below.
ts
import { Mark } from "@grassroot/ui-react"; <p>Ship the interface, <Mark>not the argument</Mark> about it.</p><Mark tone="teal" rotate={-2}>shipped</Mark>ts
<script setup lang="ts">import { Mark } from "@grassroot/ui-vue";</script> <template> <Mark>not the argument</Mark> <Mark tone="teal" :rotate="-2">shipped</Mark></template>No translated snippet for this adapter yet.
ts
<script lang="ts"> import { Mark } from "@grassroot/ui-svelte";</script> <Mark>not the argument</Mark><Mark tone="teal" rotate={-2}>shipped</Mark>ts
import { Mark } from "@grassroot/ui-solid"; export function Example() { return ( <> <Mark>not the argument</Mark> <Mark tone="teal" rotate={-2}>shipped</Mark> </> );}Installation
bash
pnpm dlx grassroot add ui/markbash
npx grassroot@latest add ui/markbash
yarn dlx grassroot add ui/markbash
bunx grassroot add ui/markAPI Reference
| Prop | Type | Default |
|---|---|---|
toneFill tone. | "accent" | "amber" | "teal" | "indigo" | undefined | "amber" |
rotateTilt in degrees (applied as the stamp rotation in brutalist themes). | number | undefined | 0 |