Skip to content
API reference

components/field-guide

Import
import * as api from "@fungi.computer/caps/components/field-guide";
Kind Export Description
type alias KeycapProps A visible keyboard key from a shortcut or instruction.
type alias CartridgeLabelProps Props accepted by CartridgeLabel.
type alias SpecimenLabelProps Props accepted by SpecimenLabel.
function Keycap() The shared field-guide treatment for a keyboard key.
function CartridgeLabel() A ruled, token-backed printed label for a physical game cartridge.
function SpecimenLabel() A caption, catalogue line, title, and note for a specimen illustration.

KeycapPropstype alias

Section titled “KeycapProps”
Signature
type KeycapProps = object & HTMLAttributes<HTMLElement>;

A visible keyboard key from a shortcut or instruction.

Name Type
children ReactNode

CartridgeLabelPropstype alias

Section titled “CartridgeLabelProps”
Signature
type CartridgeLabelProps = object & HTMLAttributes<HTMLElement>;

Props accepted by CartridgeLabel.

Name Type
title string
subtitle? string
mark? ReactNode

SpecimenLabelPropstype alias

Section titled “SpecimenLabelProps”
Signature
type SpecimenLabelProps = object & Omit<HTMLAttributes<HTMLElement>, "title">;

Props accepted by SpecimenLabel.

Name Type Description
plate string -
detail string -
kind string -
number string -
title ReactNode -
summary? ReactNode -
sketch? boolean Mark the plate number for a pencil circle and the detail for a pencil underline. The ruled CSS marks remain until enhance/sketch draws them.
Signature
function Keycap(__namedParameters): Element;

The shared field-guide treatment for a keyboard key.

Parameter Type
__namedParameters KeycapProps

Element


CartridgeLabel()function

Section titled “CartridgeLabel()”
Signature
function CartridgeLabel(__namedParameters): Element;

A ruled, token-backed printed label for a physical game cartridge.

Parameter Type
__namedParameters CartridgeLabelProps

Element


SpecimenLabel()function

Section titled “SpecimenLabel()”
Signature
function SpecimenLabel(__namedParameters): Element;

A caption, catalogue line, title, and note for a specimen illustration.

Parameter Type
__namedParameters SpecimenLabelProps

Element