AsterUIDocsv1.0.2

Docs / Component reference

Tooltip

Give a control a short explanation on hover or keyboard focus. Press Escape to dismiss it.

Tooltip example

Install

sh
npx @fierst/ui@1.0.2 add tooltip

Registry dependencies: theme.

Exports from ./ui/tooltip: Tooltip.

Download the registry source for tooltip 1.0.2.

API contracts

ts
export function* Tooltip(
  props: {
    content: string;
    side?: 'top' | 'bottom';
    align?: 'center' | 'start' | 'end';
    delay?: number;
    class?: string;
    children?: View;
  },
  ctx: Ctx,
)