Interface: MachineCardProps
Defined in: components/MachineCard.tsx:16
Properties
className?
optionalclassName?:string
Defined in: components/MachineCard.tsx:58
Extra classes on the card root.
href?
optionalhref?:string
Defined in: components/MachineCard.tsx:29
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:53
UI label overrides. Key read here: viewMachine.
MachineGrid passes its own machineCardLabels straight through to this
prop and additionally reads loading and noMachines from it for its own
empty/loading states, so the object a grid host supplies carries all three.
This doc used to name only viewMachine, which left the other two in
English for anyone who followed it (PWP-995d).
language?
optionallanguage?:string
Defined in: components/MachineCard.tsx:42
Language used to resolve the localized name/description.
machine
machine:
SparePartsMachine
Defined in: components/MachineCard.tsx:20
The machine (spare-parts tree node) to display.
onClick?
optionalonClick?: (machine) =>void
Defined in: components/MachineCard.tsx:61
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:37
Show the machine description under the name. Defaults to false.
showImage?
optionalshowImage?:boolean
Defined in: components/MachineCard.tsx:34
Show the machine image. Defaults to true.