- Prop
tone- Type
"accent" | "amber" | "teal" | "indigo" | undefined- Default
"amber"- Requirement
- optional
- Description
- Fill tone.
Docs Components Core
Mark
React example follows below.
Vue example follows below.
Angular example follows below.
Svelte example follows below.
Solid example follows below.
- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
const markFixture = { id: "mark", text: "not the argument",} satisfies { id: string; text: string }; import { Mark } from "@grassroot/ui-react"; export default function MarkDemo() { return ( <div> <p> Ship the interface, <Mark>{markFixture.text}</Mark>. </p> </div> );}- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script setup lang="ts">import { Mark } from "@grassroot/ui-vue";const markFixture = { id: "mark", text: "not the argument",} satisfies { id: string; text: string }; </script> <template> <div> <p> Ship the interface, <Mark>{{ markFixture.text }}</Mark >. </p> </div></template>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import { Component } from "@angular/core";import { GrassrootMark } from "@grassroot/ui-angular";const markFixture = { id: "mark", text: "not the argument",} satisfies { id: string; text: string }; @Component({ selector: "app-mark-demo", standalone: true, imports: [GrassrootMark], template: `<div> <p> Ship the interface, <mark grassrootMark>{{ fixture.text }}</mark >. </p> </div>`,})export class MarkDemoComponent { protected readonly fixture = markFixture;} export default MarkDemoComponent;- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script lang="ts"> import { Mark } from "@grassroot/ui-svelte"; const markFixture = { id: "mark", text: "not the argument", } satisfies { id: string; text: string }; </script> <div><p>Ship the interface, <Mark>{markFixture.text}</Mark>.</p></div>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
/** @jsxImportSource solid-js */import { Mark } from "@grassroot/ui-solid";const markFixture = { id: "mark", text: "not the argument",} satisfies { id: string; text: string }; export default function MarkDemo() { return ( <div> <p> Ship the interface, <Mark>{markFixture.text}</Mark>. </p> </div> );}Installation
API Reference
Import
import { Mark } from "@grassroot/ui-react";
Props
Prop
Type
Default
Requirement
Description
tone"accent" | "amber" | "teal" | "indigo" | undefined"amber"optional
Fill tone.
rotatenumber | undefined0optional
Tilt in degrees (applied as the stamp rotation in brutalist themes).
- Prop
rotate- Type
number | undefined- Default
0- Requirement
- optional
- Description
- Tilt in degrees (applied as the stamp rotation in brutalist themes).
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.
Import
import { Mark } from "@grassroot/ui-vue";
Props
Prop
Type
Default
Requirement
toneMarkTone | undefined"amber"optional
rotatenumber | undefined0optional
- Prop
tone- Type
MarkTone | undefined- Default
"amber"- Requirement
- optional
- Prop
rotate- Type
number | undefined- Default
0- Requirement
- optional
Content regions
default
Import
import { Component } from "@angular/core";
import { GrassrootMark } from "@grassroot/ui-angular";
Props
Prop
Type
Default
Requirement
toneMarkTone"amber"optional
rotatenumber0optional
- Prop
tone- Type
MarkTone- Default
"amber"- Requirement
- optional
- Prop
rotate- Type
number- Default
0- Requirement
- optional
Content regions
default
Import
import { Mark } from "@grassroot/ui-svelte";
Props
Prop
Type
Default
Requirement
toneMarkTone"amber"optional
rotatenumber0optional
classstring—
optional
stylestring—
optional
- Prop
tone- Type
MarkTone- Default
"amber"- Requirement
- optional
- Prop
rotate- Type
number- Default
0- Requirement
- optional
- Prop
class- Type
string- Default
- —
- Requirement
- optional
- Prop
style- Type
string- Default
- —
- Requirement
- optional
Content regions
children
Import
import { Mark } from "@grassroot/ui-solid";
Props
Prop
Type
Default
Requirement
toneMarkTone—
optional
rotatenumber—
optional
classNamestring—
optional
- Prop
tone- Type
MarkTone- Default
- —
- Requirement
- optional
- Prop
rotate- Type
number- Default
- —
- Requirement
- optional
- Prop
className- Type
string- Default
- —
- Requirement
- optional
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.