Interface: MachineCardProps
Defined in: components/MachineCard.tsx:14
Properties
className?
optionalclassName?: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?
optionallabels?:Record<string,string>
Defined in: components/MachineCard.tsx:43
UI label overrides. Supported key: viewMachine.
language?
optionallanguage?: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?
optionalonClick?: (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?
optionalshowDescription?:boolean
Defined in: components/MachineCard.tsx:35
Show the machine description under the name. Defaults to false.
showImage?
optionalshowImage?:boolean
Defined in: components/MachineCard.tsx:32
Show the machine image. Defaults to true.