- Prop
definitions- Type
readonly FootnoteDefinition[] | undefined- Default
- —
- Requirement
- optional
Docs Components Uncategorized
Footnotes
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
import { Footnotes } from "@grassroot/ui-react"; const definitions = [ { identifier: "1", text: "The source remains plain data." }, { identifier: "2", text: "The adapter owns the DOM." },]; export default function FootnotesDemo() { return <Footnotes definitions={definitions} />;}- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script setup lang="ts">import { Footnotes } from "@grassroot/ui-vue"; const definitions = [ { identifier: "1", text: "The source remains plain data." }, { identifier: "2", text: "The adapter owns the DOM." },];</script> <template> <Footnotes :definitions="definitions" /></template>- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
import { Component } from "@angular/core";import { GrassrootFootnotes } from "@grassroot/ui-angular"; @Component({ selector: "app-footnotes-demo", standalone: true, imports: [GrassrootFootnotes], host: { style: "display: contents" }, template: `<grassroot-footnotes [definitions]="definitions" />`,})export class FootnotesDemoComponent { protected readonly definitions = [ { identifier: "1", text: "The source remains plain data." }, { identifier: "2", text: "The adapter owns the DOM." }, ];} export default FootnotesDemoComponent;- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
<script lang="ts"> import { Footnotes } from "@grassroot/ui-svelte"; const definitions = [ { identifier: "1", text: "The source remains plain data." }, { identifier: "2", text: "The adapter owns the DOM." }, ];</script> <Footnotes {definitions} />- parts
- —
- nodes
- —
- size
- —
- part
- —
ts
/** @jsxImportSource solid-js */import { Footnotes } from "@grassroot/ui-solid"; const definitions = [ { identifier: "1", text: "The source remains plain data." }, { identifier: "2", text: "The adapter owns the DOM." },]; export default function FootnotesDemo() { return <Footnotes definitions={definitions} />;}Installation
API Reference
Import
import { Footnotes } from "@grassroot/ui-react";
Props
Prop
Type
Default
Requirement
definitionsreadonly FootnoteDefinition[] | undefined—
optional
Content regions
children
Native attributes
Standard DOM and ARIA attributes not listed above spread onto the root element.
Import
import { Footnotes } from "@grassroot/ui-vue";
Props
Prop
Type
Default
Requirement
definitionsreadonly Definition[] | undefined() => []optional
- Prop
definitions- Type
readonly Definition[] | undefined- Default
() => []- Requirement
- optional
Content regions
default
Import
import { Component } from "@angular/core";
import { GrassrootFootnotes } from "@grassroot/ui-angular";
Props
Prop
Type
Default
Requirement
definitionsreadonly FootnoteDefinition[][]optional
classNamestring—
optional
- Prop
definitions- Type
readonly FootnoteDefinition[]- Default
[]- Requirement
- optional
- Prop
className- Type
string- Default
- —
- Requirement
- optional
Content regions
default
Import
import { Footnotes } from "@grassroot/ui-svelte";
Props
Prop
Type
Default
Requirement
definitionsreadonly Definition[]—
optional
classstring—
optional
- Prop
definitions- Type
readonly Definition[]- Default
- —
- Requirement
- optional
- Prop
class- Type
string- Default
- —
- Requirement
- optional
Content regions
children
Import
import { Footnotes } from "@grassroot/ui-solid";
Props
Prop
Type
Default
Requirement
definitionsreadonly FootnoteDefinition[]—
optional
classNamestring—
optional
- Prop
definitions- Type
readonly FootnoteDefinition[]- 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.