Docs Components Core

Mark

React example follows below.
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>
);
}
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>
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;
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>
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.
rotate
number | undefined
0
optional
Tilt in degrees (applied as the stamp rotation in brutalist themes).
Prop
tone
Type
"accent" | "amber" | "teal" | "indigo" | undefined
Default
"amber"
Requirement
optional
Description
Fill tone.
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
tone
MarkTone | undefined
"amber"
optional
rotate
number | undefined
0
optional
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
tone
MarkTone
"amber"
optional
rotate
number
0
optional
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
tone
MarkTone
"amber"
optional
rotate
number
0
optional
class
string
optional
style
string
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
tone
MarkTone
optional
rotate
number
optional
className
string
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.