Author Tooltip
Server ComponentHover an avatar to see name, role, and profile links.
Import
tsx
import { AuthorTooltip } from "@cronus-ui/ui";
bash
npx cronus-ui add author-tooltip
Examples
.cronus
No audit fixture declares this family in .cronus yet.
API Reference
Generated from the component's exported types.
AuthorTooltipLabels
| Prop | Type | Default | Description |
|---|---|---|---|
github* | string | — | — |
twitter* | string | — | — |
linkedin* | string | — | — |
AuthorTooltipProps
Extends VariantProps<typeof authorTooltipAvatarVariants>
| Prop | Type | Default | Description |
|---|---|---|---|
author* | Author | — | — |
avatarSize | "sm" | "md" | "lg" | "xl" | — | — |
avatarClassName | string | — | — |
trigger | ReactNode | — | — |
children | ReactNode | — | Contents of the component. |
labels | Partial<AuthorTooltipLabels> | — | Override default English strings. |
size | "sm" | "md" | "lg" | "xl" | "sm" | One of "sm" | "md" | "lg" | "xl". |
asChild | boolean | — | Render as the child element via Slot. |
className | string | — | Additional class names merged onto the root. |