Skip to content
Kits

Activity

Shared static and collapsible activity anatomy with bounded, scrollable detail content.

Composition

Static activity

  • <Activity>
    • <ActivityRow>
      • <ActivityIcon />
      • <ActivityTitle />
      • <ActivityStatus />
      </ActivityRow>
    </Activity>

Collapsible activity

  • <Activity>
    • <ActivityTrigger>
      • <ActivityIcon />
      • <ActivityTitle />
      • <ActivityStatus />
      </ActivityTrigger>
    • <ActivityContent>
      • <Timeline />
      • <SourceBadge />
      • <ActivityDetail>
        • <ActivityDetailLabel />
        • <ActivityDetailContent />
        </ActivityDetail>
      </ActivityContent>
    </Activity>

Installation

Use this command to install the component.

Registry command
See registry manifest

Usage

Dependencies

Raw code

Installed component source and support files

src/registry/sources/control-ui/activity.tsx

Knobs

Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.

--cui-activity-* · 5 knobsHow the cascade resolves
--cui-activity-row-foreground<color>var(--muted-foreground)
--cui-activity-trigger-radius<length-percentage>var(--radius-control)
--cui-activity-trigger-hover-background<color>oklch(from var(--muted) l c h / 0.45)
--cui-activity-code-background<color>oklch(from var(--muted) l c h / 0.5)
--cui-activity-code-radius<length-percentage>var(--radius-control)