- Prop
as- Type
React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined- Default
"span"- Requirement
- optional
- Description
- Override the rendered element.
Docs Components Primitives
Eyebrow
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 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> );}- parts
- —
- nodes
- —
- size
- —
- part
- —
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>- parts
- —
- nodes
- —
- size
- —
- part
- —
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;- parts
- —
- nodes
- —
- size
- —
- part
- —
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>- parts
- —
- nodes
- —
- size
- —
- part
- —
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
asReact.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined"span"optional
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
asstring | 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
asstring"span"optional
classstring—
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
asstring—
optional
classNamestring—
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.