DsTooltipDemo
This source is documented by the existing examples linked below.
src/components/islands/DsTooltipDemo.tsxUsage contract
- Use the existing Radix dialog/menu/tooltip wrappers. Dialogs require an accessible title and focus return; tooltips never carry essential content alone.
Examples
- overlays
<div class="flex flex-wrap items-center gap-3"> <DsDialogDemo client:visible open={t(locale, 'ds.dialogOpen')} title={t(locale, 'ds.dialogTitle')} body={t(locale, 'ds.dialogBody')} close={t(locale, 'ds.close')} /> <PanelMenu client:visible label={t(locale, 'ds.menuLabel')} items={[{label: t(locale, 'ds.menuAll'), href: '/work/'}, {label: t(locale, 'ds.menuCv'), href: t(locale, 'nav.cvHref')}]} /> <DsTooltipDemo client:visible trigger={t(locale, 'ds.tooltipTrigger')} text={t(locale, 'ds.tooltip')} /> <PreRead client:visible trigger={t(locale, 'preread.open')} title={t(locale, 'preread.title')} intro={t(locale, 'preread.intro')} items={[t(locale, 'preread.1'), t(locale, 'preread.2'), t(locale, 'preread.3')]} closeLabel={t(locale, 'ds.close')} /> </div>
API
Extracted from the source with the TypeScript parser. Inherited and imported types remain references; implementation is authoritative.
DsTooltipDemo({trigger, text}: {trigger: string; text: string})Source usage
Website reference
This is static source evidence. A reachable module may contain conditional or unused branches. External consumers and staged static pages are outside this scan. No status authorizes deletion.
Website
Documentation
- src/pages/design-system/[category].astro
- src/components/ds/DesignSystemPage.astro
- src/components/ds/PrimitiveDemos.astro
- src/components/islands/DsTooltipDemo.tsx
Consumers in source
Direct static, dynamic and type imports. Imports do not prove that a branch renders or that a proposal is published.
Dependencies
@/components/LeetReady·src/components/LeetReady.tsx@/components/ui/button·src/components/ui/button.tsx@/components/ui/tooltip·src/components/ui/tooltip.tsx