CLI previewInstall commands shown on this site are not released yet.

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/mark
bash
npx grassroot@latest add ui/mark
bash
yarn dlx grassroot add ui/mark
bash
bunx grassroot add ui/mark

API Reference

MarkProps
PropTypeDefault
toneFill tone."accent" | "amber" | "teal" | "indigo" | undefined"amber"
rotateTilt in degrees (applied as the stamp rotation in brutalist themes).number | undefined0