Styled quick start

Copy this entrypoint first. It includes the imports required to get the component on screen.

svelte
<script lang="ts">
  import '@dryui/ui/themes/default.css';
  import '@dryui/ui/themes/dark.css';
  import { HoverCard } from '@dryui/ui';
</script>

<HoverCard.Root>
  <HoverCard.Trigger>...</HoverCard.Trigger>
  <HoverCard.Content>...</HoverCard.Content>
</HoverCard.Root>

Import options

Root package

ts
import { HoverCard } from '@dryui/ui'

Per-component subpath

ts
import { HoverCard } from '@dryui/ui/hover-card'

API

Props, CSS variables, and the public data attributes you can target when styling.

Prop Type Description Default Required Bindable

HoverCard.Root

openDelay
number
closeDelay
number
children
Snippet
Content rendered inside the component.

HoverCard.Trigger

href
string
Destination URL when the component renders as a link.
children
Snippet
Content rendered inside the component.

HoverCard.Content

placement
toptop-starttop-endbottombottom-startbottom-endleftleft-startleft-endrightright-startright-end
'bottom'
offset
number
8
children
Snippet
Content rendered inside the component.