Skip to content
Chat & AI

Artifact

Server Component

A framed canvas for generated files, code, or previews.

Import

tsx
import { Artifact } from "@cronus-ui/ui";
bash
npx cronus-ui add artifact

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.

ArtifactProps

Extends HTMLAttributes<HTMLDivElement>

Skip ArtifactProps 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.

ArtifactHeaderProps

Extends HTMLAttributes<HTMLDivElement>

Skip ArtifactHeaderProps 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.

ArtifactCloseLabels

Skip ArtifactCloseLabels props table
PropTypeDefaultDescription
close*
string——

ArtifactCloseProps

Extends ButtonHTMLAttributes<HTMLButtonElement>

Skip ArtifactCloseProps props table
PropTypeDefaultDescription
ref
Ref<HTMLButtonElement>—Ref forwarded to the underlying DOM node.
labels
Partial<ArtifactCloseLabels>—Override default English strings.
variant
"ghost" | "outline" | "primary" | "secondary" | "destructive" | "link""ghost"Visual variant.
size
"sm" | "md" | "lg" | "icon" | "icon-sm""icon-sm"Control size.
type
string—Native type of the underlying element.
disabled
boolean—Disables pointer and keyboard interaction.
onClick
(event: MouseEvent) => void—Click handler.
children
ReactNode—Contents of the component.
className
string—Additional class names merged onto the root.

ArtifactTitleProps

Extends HTMLAttributes<HTMLParagraphElement>

Skip ArtifactTitleProps props table
PropTypeDefaultDescription
ref
Ref<HTMLParagraphElement>—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.

ArtifactDescriptionProps

Extends HTMLAttributes<HTMLParagraphElement>

Skip ArtifactDescriptionProps props table
PropTypeDefaultDescription
ref
Ref<HTMLParagraphElement>—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.

ArtifactActionsProps

Extends HTMLAttributes<HTMLDivElement>

Skip ArtifactActionsProps 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.

ArtifactActionProps

Extends ButtonHTMLAttributes<HTMLButtonElement>

Skip ArtifactActionProps props table
PropTypeDefaultDescription
ref
Ref<HTMLButtonElement>—Ref forwarded to the underlying DOM node.
tooltip
string——
label
string——
icon
LucideIcon——
variant
"ghost" | "outline" | "primary" | "secondary" | "destructive" | "link""ghost"Visual variant.
size
"sm" | "md" | "lg" | "icon" | "icon-sm""icon-sm"Control size.
children
ReactNode—Contents of the component.
type
string—Native type of the underlying element.
disabled
boolean—Disables pointer and keyboard interaction.
onClick
(event: MouseEvent) => void—Click handler.
className
string—Additional class names merged onto the root.

ArtifactContentProps

Extends HTMLAttributes<HTMLDivElement>

Skip ArtifactContentProps 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.