Docs Components Primitives

Eyebrow

React example follows below.
ts
const eyebrowFixture = {
id: "eyebrow",
text: "01 · Infrastructure",
} satisfies { id: string; text: string };
import { Eyebrow } from "@grassroot/ui-react";
export default function EyebrowDemo() {
return (
<div>
<Eyebrow>{eyebrowFixture.text}</Eyebrow>
</div>
);
}
ts
<script setup lang="ts">
import { Eyebrow } from "@grassroot/ui-vue";
const eyebrowFixture = {
id: "eyebrow",
text: "01 · Infrastructure",
} satisfies { id: string; text: string };
</script>
<template>
<div>
<Eyebrow>{{ eyebrowFixture.text }}</Eyebrow>
</div>
</template>
ts
import { Component } from "@angular/core";
import { GrassrootEyebrow } from "@grassroot/ui-angular";
const eyebrowFixture = {
id: "eyebrow",
text: "01 · Infrastructure",
} satisfies { id: string; text: string };
@Component({
selector: "app-eyebrow-demo",
standalone: true,
imports: [GrassrootEyebrow],
template: `
<div>
<grassroot-eyebrow>{{ fixture.text }}</grassroot-eyebrow>
</div>
`,
})
export class EyebrowDemoComponent {
protected readonly fixture = eyebrowFixture;
}
export default EyebrowDemoComponent;
ts
<script lang="ts">
import { Eyebrow } from "@grassroot/ui-svelte";
const eyebrowFixture = {
id: "eyebrow",
text: "01 · Infrastructure",
} satisfies { id: string; text: string };
</script>
<div><Eyebrow>{eyebrowFixture.text}</Eyebrow></div>
ts
/** @jsxImportSource solid-js */
import { Eyebrow } from "@grassroot/ui-solid";
const eyebrowFixture = {
id: "eyebrow",
text: "01 · Infrastructure",
} satisfies { id: string; text: string };
export default function EyebrowDemo() {
return (
<div>
<Eyebrow>{eyebrowFixture.text}</Eyebrow>
</div>
);
}

Installation

API Reference

Import

import { Eyebrow } from "@grassroot/ui-react";

Props

Prop
Type
Default
Requirement
Description
as
React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined
"span"
optional
Override the rendered element.
Prop
as
Type
React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined
Default
"span"
Requirement
optional
Description
Override the rendered element.

Native attributes

Standard DOM and ARIA attributes not listed above spread onto the root element.

Import

import { Eyebrow } from "@grassroot/ui-vue";

Props

Prop
Type
Default
Requirement
as
string | undefined
"span"
optional
Prop
as
Type
string | undefined
Default
"span"
Requirement
optional

Content regions

  • default

Import

import { Component } from "@angular/core";
import { GrassrootEyebrow } from "@grassroot/ui-angular";

Props

Prop
Type
Default
Requirement
as
"span" | "div" | "p"
"span"
optional
Prop
as
Type
"span" | "div" | "p"
Default
"span"
Requirement
optional

Content regions

  • default

Import

import { Eyebrow } from "@grassroot/ui-svelte";

Props

Prop
Type
Default
Requirement
as
string
"span"
optional
class
string
optional
Prop
as
Type
string
Default
"span"
Requirement
optional
Prop
class
Type
string
Default
Requirement
optional

Content regions

  • children

Import

import { Eyebrow } from "@grassroot/ui-solid";

Props

Prop
Type
Default
Requirement
as
string
optional
className
string
optional
Prop
as
Type
string
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.