@manta-eu/react/plan-card
Reference for @manta-eu/react/plan-card as it is on main.
Type Aliases
PlanCardFact
PlanCardFact =
object
Properties
icon?
optionalicon?:ReactNode
label
label:
string
name
name:
string
tone?
optionaltone?:"accent"|"warning"|"neutral"
PlanCardFigure
PlanCardFigure =
object
Properties
detail?
optionaldetail?:string
Shown on hover and to screen readers.
label
label:
string
unit?
optionalunit?:string
value
value:
string
verdict?
optionalverdict?:"green"|"red"
PlanCardProps
PlanCardProps =
object
Properties
actionLabel?
optionalactionLabel?:string
actions?
optionalactions?:ReactNode
because?
optionalbecause?:string
becauseLabel?
optionalbecauseLabel?:string
className?
optionalclassName?:string
description?
optionaldescription?:string
emphasis?
optionalemphasis?:boolean
facts?
optionalfacts?: readonlyPlanCardFact[]
figures?
optionalfigures?: readonlyPlanCardFigure[]
href
href:
string
layout?
optionallayout?:"card"|"row"
row is a compact line; its status shows only with showStatus.
linkComponent?
optionallinkComponent?:ElementType
The link component, such as a router link; receives href.
name
name:
string
onOpen?
optionalonOpen?: () =>void
Makes the card a button that opens the plan beside the list.
Returns
void
result?
optionalresult?:PlanCardStatus
showStatus?
optionalshowStatus?:boolean
status
status:
PlanCardStatus
system?
optionalsystem?:PlanCardSystem
value?
optionalvalue?:PlanCardValue
PlanCardStatus
PlanCardStatus =
object
Properties
label
label:
string
tone
tone:
PlanCardTone
PlanCardSystem
PlanCardSystem =
object
Properties
icon?
optionalicon?:ReactNode
label
label:
string
PlanCardTone
PlanCardTone =
"waiting"|"running"|"done"|"failed"|"neutral"
PlanCardValue
PlanCardValue =
object
Properties
figure
figure:
string
note?
optionalnote?:string
period?
optionalperiod?:string
tone?
optionaltone?:"accent"|"success"|"error"
Functions
PlanCard()
PlanCard(
props):Element
Parameters
props
Returns
Element