Pill to card
overlaysProEine Avatar-Pille, die sich aus ihrem Platz mit einem FLIP-Morph zu einer Profilkarte entfaltet. Escape oder ein Klick außerhalb faltet sie wieder zusammen.
Einführungspreis bis einschließlich 31. Dezember 2026. Danach 79 €.
Vorschau
Live-Demo. Das Theme schaltet die Demo selbst um.
Code
Der Code ist gesperrt
Pill to card gehört zu Manniche UI Pro. Ein Schlüssel öffnet den Quellcode aller 66 Effekte.
Kaufen · 49 €49 € · Einführungspreis bis einschließlich 31. Dezember 2026. Danach 79 €.
- Einmalzahlung
- Ein Entwickler
- Melde dich an und erstelle deinen Schlüssel sofort
- Keine Umsatzsteuer (§ 19 UStG)
Hast du einen Schlüssel? Hol den Code mit der CLI oder per MCP.
Der Schlüssel liegt in MANNICHE_PRO_KEY, nie im Code oder in der Adresse. So richtest du ihn ein
npx shadcn@latest add @manniche-pro/pill-to-cardclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
PillToCardProps
| Prop | Typ | Standard | Was sie tut |
|---|---|---|---|
name erforderlich | string | – | The person's name, shown in the pill and as the card's title. |
role | string | – | A line under the name in the card, e.g. a job title. |
avatar | ReactNode | – | The avatar. Defaults to the initials of name. |
children | ReactNode | – | The card's body. Each direct child fades in a little after the one before it. |
open | boolean | – | Controlled open state. |
defaultOpen | boolean | false | Open state on the first render, when uncontrolled. |
onOpenChange | (open: boolean) => void | – | Called when the card asks to open or close. |
closeLabel | string | 'Close profile' | Accessible name of the close button. |
Nimmt auch alle Props von Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'role'>.
A11y
Tastatur
The pill is a button with aria-expanded, aria-controls and aria-haspopup dialog. Enter opens the card and moves focus to its first control, or to the close button named by closeLabel. Escape or the close button closes it and returns focus to the pill.
Screenreader
The pill reports expanded state. The card is a dialog and a click outside or focus leaving it closes it.
Reduzierte Bewegung
Under reduced motion the pill and card swap at once.