Skip to main content

Interface: MachineCardProps

Defined in: components/MachineCard.tsx:14

Properties

className?

optional className?: string

Defined in: components/MachineCard.tsx:48

Extra classes on the card root.


href

href: string

Defined in: components/MachineCard.tsx:27

Destination for the card link — the child node's URL.

Passed in rather than derived from configuration.urls because a machine's URL is its ancestor path (/machines/a/b/c), which only the host route knows; the machine object carries just its own slug.


labels?

optional labels?: Record<string, string>

Defined in: components/MachineCard.tsx:43

UI label overrides. Supported key: viewMachine.


language?

optional language?: string

Defined in: components/MachineCard.tsx:40

Language used to resolve the localized name/description.


machine

machine: SparePartsMachine

Defined in: components/MachineCard.tsx:18

The machine (spare-parts tree node) to display.


onClick?

optional onClick?: (machine) => void

Defined in: components/MachineCard.tsx:51

Click handler for the card link (e.g. analytics). Does not prevent navigation.

Parameters

machine

SparePartsMachine

Returns

void


showDescription?

optional showDescription?: boolean

Defined in: components/MachineCard.tsx:35

Show the machine description under the name. Defaults to false.


showImage?

optional showImage?: boolean

Defined in: components/MachineCard.tsx:32

Show the machine image. Defaults to true.