Skip to content
Chat & AI

Plan

Collapsible plan card the model can stream into.

Import

tsx
import { Plan } from "@cronus-ui/ui";
bash
npx cronus-ui add plan

Examples

.cronus

No audit fixture declares this family in .cronus yet.

React onlyParity: Not portedParity scoreboard

API Reference

Generated from the component's exported types.

PlanProps

Extends ComponentProps<typeof Collapsible>

Skip PlanProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>—Ref forwarded to the underlying DOM node.
isStreaming
booleanfalse—
open
boolean—Controlled open state.
defaultOpen
boolean—Uncontrolled initial open state.
onOpenChange
(open: boolean) => void—Called when the open state changes.
children
ReactNode—Contents of the component.
disabled
boolean—Disables pointer and keyboard interaction.

PlanHeaderProps

Extends ComponentProps<typeof CardHeader>

Skip PlanHeaderProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

PlanTitleProps

Extends Omit<ComponentProps<typeof CardTitle>, "children">

Skip PlanTitleProps props table
PropTypeDefaultDescription
children*
string—Contents of the component.
asChild
boolean—Render as the child element via Slot.
className
string—Additional class names merged onto the root.

PlanDescriptionProps

Extends Omit<ComponentProps<typeof CardDescription>, "children">

Skip PlanDescriptionProps props table
PropTypeDefaultDescription
children*
string—Contents of the component.
asChild
boolean—Render as the child element via Slot.
className
string—Additional class names merged onto the root.

PlanActionProps

Extends ComponentProps<typeof CardAction>

Skip PlanActionProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

PlanContentProps

Extends ComponentProps<typeof CardContent>

Skip PlanContentProps props table
PropTypeDefaultDescription
asChild
boolean—Render as the child element via Slot.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

PlanFooterProps

Extends HTMLAttributes<HTMLDivElement>

Skip PlanFooterProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>—Ref forwarded to the underlying DOM node.
className
string—Additional class names merged onto the root.
children
ReactNode—Contents of the component.
id
string—DOM id of the root element.

PlanTriggerLabels

Skip PlanTriggerLabels props table
PropTypeDefaultDescription
toggle*
string——

PlanTriggerProps

Extends ComponentProps<typeof Button>

Skip PlanTriggerProps props table
PropTypeDefaultDescription
labels
Partial<PlanTriggerLabels>—Override default English strings.
variant
string—Visual variant.
size
string—Control size.
asChild
boolean—Render as the child element via Slot.
disabled
boolean—Disables pointer and keyboard interaction.
type
string—Native type of the underlying element.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.