Skip to content
aq-ui
Back to ComponentsComponent

Message

Open-code aq-ui accessible component family for Message.

Preview

This is a live example. Interact with the available controls and use the keyboard to inspect the component's states and behavior.

Loading interactive preview…

Installation

pnpm dlx aq-ui@alpha add message

API reference

SSR-safe

Import the parts you need, then jump to an export for its contract.

View full source

Quick start

import { Message } from "@/components/ui/message"

<Message />

Message

constSource L20

Open-code aq-ui accessible component family for Message.

const Message = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div"> & { align?: "start" | "end" }>(…)
Props type
React.ComponentProps<"div"> & { align?: "start" | "end" }

Props

NameTypeDefault
align?"start" | "end""start"
<Message />

MessageAvatar

constSource L39

Public const export from Message.

const MessageAvatar = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div">>(…)
Props type
React.ComponentProps<"div">
<MessageAvatar />

MessageContent

constSource L57

Content export for composing Message.

const MessageContent = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div">>(…)
Props type
React.ComponentProps<"div">
<MessageContent />

MessageGroup

constSource L5

Public const export from Message.

const MessageGroup = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div">>(…)
Props type
React.ComponentProps<"div">
<MessageGroup />

MessageHeader

constSource L75

Header export for composing Message.

const MessageHeader = React.forwardRef<React.ComponentRef<"div">, React.ComponentProps<"div">>(…)
Props type
React.ComponentProps<"div">
<MessageHeader />

Registry dependencies

utils

Files

  • components/ui/message.tsx

Source