Docs Components Uncategorized

Footnotes

React example follows below.
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} />;
}
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>
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;
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} />
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
definitions
readonly FootnoteDefinition[] | undefined
optional
Prop
definitions
Type
readonly FootnoteDefinition[] | undefined
Default
Requirement
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
definitions
readonly 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
definitions
readonly FootnoteDefinition[]
[]
optional
className
string
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
definitions
readonly Definition[]
optional
class
string
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
definitions
readonly FootnoteDefinition[]
optional
className
string
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.