Skip to content
AI Elements

Queue

Server Component

Pending messages and todos waiting to run.

Import

tsx
import { Queue } from "@cronus-ui/ui";
bash
npx cronus-ui add queue

Examples

API Reference

Generated from the component's exported types.

QueueItemProps

Extends LiHTMLAttributes<HTMLLIElement>

Skip QueueItemProps props table
PropTypeDefaultDescription
ref
Ref<HTMLLIElement>Ref forwarded to the underlying DOM node.

QueueItemIndicatorProps

Extends HTMLAttributes<HTMLSpanElement>

Skip QueueItemIndicatorProps props table
PropTypeDefaultDescription
ref
Ref<HTMLSpanElement>Ref forwarded to the underlying DOM node.
completed
booleanfalse

QueueItemContentProps

Extends HTMLAttributes<HTMLSpanElement>

Skip QueueItemContentProps props table
PropTypeDefaultDescription
ref
Ref<HTMLSpanElement>Ref forwarded to the underlying DOM node.
completed
booleanfalse

QueueItemDescriptionProps

Extends HTMLAttributes<HTMLDivElement>

Skip QueueItemDescriptionProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.
completed
booleanfalse

QueueItemActionsProps

Extends HTMLAttributes<HTMLDivElement>

Skip QueueItemActionsProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

QueueItemActionProps

Extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size">

Skip QueueItemActionProps props table
PropTypeDefaultDescription
ref
Ref<HTMLButtonElement>Ref forwarded to the underlying DOM node.

QueueItemAttachmentProps

Extends HTMLAttributes<HTMLDivElement>

Skip QueueItemAttachmentProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

QueueItemImageProps

Extends ImgHTMLAttributes<HTMLImageElement>

Skip QueueItemImageProps props table
PropTypeDefaultDescription
ref
Ref<HTMLImageElement>Ref forwarded to the underlying DOM node.

QueueItemFileProps

Extends HTMLAttributes<HTMLSpanElement>

Skip QueueItemFileProps props table
PropTypeDefaultDescription
ref
Ref<HTMLSpanElement>Ref forwarded to the underlying DOM node.

QueueListProps

Extends HTMLAttributes<HTMLDivElement>

Skip QueueListProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.

QueueSectionProps

Extends ComponentProps<typeof Collapsible>

Skip QueueSectionProps props table
PropTypeDefaultDescription
defaultExpanded
booleantrueTaki alias for `defaultOpen`.

QueueSectionTriggerProps

Extends ComponentProps<typeof CollapsibleTrigger>

No own props — see the extended type above for available props.

QueueSectionLabelProps

Extends HTMLAttributes<HTMLSpanElement>

Skip QueueSectionLabelProps props table
PropTypeDefaultDescription
ref
Ref<HTMLSpanElement>Ref forwarded to the underlying DOM node.
count
number
label*
string
icon
ReactNode

QueueSectionContentProps

Extends ComponentProps<typeof CollapsibleContent>

No own props — see the extended type above for available props.

QueueProps

Extends HTMLAttributes<HTMLDivElement>

Skip QueueProps props table
PropTypeDefaultDescription
ref
Ref<HTMLDivElement>Ref forwarded to the underlying DOM node.