PyBlade/ui
Menu⌄
DocsComponentsHover card

Hover card

A preview card shown on hover and focus, in CSS only.

1 file

Installation

pyblade-ui add hover-card

Usage

The tag <pb-ui.hover-card> is available in all your templates.

<pb-ui.hover-card>
  <pb-slot:trigger><a href="/u/ada" class="underline">@ada</a></pb-slot:trigger>
  <p class="text-sm">Ada Lovelace, first programmer.</p>
</pb-ui.hover-card>

Props

PropDefault
trigger''
align'center'

Any other attribute (class, id, x-on:click, hx-post…) is passed to the root element; your Tailwind classes win over the component's.