Manta Developers
GitHub
Menu

@manta-eu/react/plan-card

Reference for @manta-eu/react/plan-card as it is on main.

Type Aliases

PlanCardFact

PlanCardFact = object

Properties

icon?

optional icon?: ReactNode

label

label: string

name

name: string

tone?

optional tone?: "accent" | "warning" | "neutral"


PlanCardFigure

PlanCardFigure = object

Properties

detail?

optional detail?: string

Shown on hover and to screen readers.

label

label: string

unit?

optional unit?: string

value

value: string

verdict?

optional verdict?: "green" | "red"


PlanCardProps

PlanCardProps = object

Properties

actionLabel?

optional actionLabel?: string

actions?

optional actions?: ReactNode

because?

optional because?: string

becauseLabel?

optional becauseLabel?: string

className?

optional className?: string

description?

optional description?: string

emphasis?

optional emphasis?: boolean

facts?

optional facts?: readonly PlanCardFact[]

figures?

optional figures?: readonly PlanCardFigure[]

href

href: string

layout?

optional layout?: "card" | "row"

row is a compact line; its status shows only with showStatus.

linkComponent?

optional linkComponent?: ElementType

The link component, such as a router link; receives href.

name

name: string

onOpen?

optional onOpen?: () => void

Makes the card a button that opens the plan beside the list.

Returns

void

result?

optional result?: PlanCardStatus

showStatus?

optional showStatus?: boolean

status

status: PlanCardStatus

system?

optional system?: PlanCardSystem

value?

optional value?: PlanCardValue


PlanCardStatus

PlanCardStatus = object

Properties

label

label: string

tone

tone: PlanCardTone


PlanCardSystem

PlanCardSystem = object

Properties

icon?

optional icon?: ReactNode

label

label: string


PlanCardTone

PlanCardTone = "waiting" | "running" | "done" | "failed" | "neutral"


PlanCardValue

PlanCardValue = object

Properties

figure

figure: string

note?

optional note?: string

period?

optional period?: string

tone?

optional tone?: "accent" | "success" | "error"

Functions

PlanCard()

PlanCard(props): Element

Parameters

props

PlanCardProps

Returns

Element