Dither Badge
buttonNeuProEin pillenförmiges Badge mit Text und Icon, gedruckt als Bayer-gedithertes Pixelbild in drei Farben auf einem Verlauf. Die Punkte schimmern, das Icon schaukelt. Als Badge, Button oder Link nutzbar.
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
Dither Badge 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/dither-badgeclaude mcp add --transport http manniche-ui https://mikkelmanniche.dk/api/mcp --header "Authorization: Bearer $MANNICHE_PRO_KEY"Props
DitherBadgeProps
| Prop | Typ | Standard | Was sie tut |
|---|---|---|---|
children | ReactNode | – | The label. It is real text, drawn crisp over the dither. |
icon | ReactNode | – | A line icon (an SVG element, e.g. from lucide-react). It is printed in dots and sways a little. |
as | 'span' | 'button' | 'a' | 'span' | span for a static badge, button for an action, a for a link (pass href). |
href | string | – | Link target when as="a". |
type | 'button' | 'submit' | 'reset' | 'button' | Button type when as="button". |
disabled | boolean | – | Disables the button (only with as="button"). |
tone | DitherBadgeTone | 'bubblegum' | A ready-made pair of pill and icon inks. |
inks | DitherBadgeInks | – | Your own pill inks, shadow to highlight. |
iconInks | DitherBadgeInks | – | Your own icon inks, shadow to highlight. |
labelColor | string | – | Colour of the label. |
size | DitherBadgeSize | 'md' | Height step: 32, 44 or 56 pixels. |
iconSide | 'start' | 'end' | 'end' | Side the icon sits on. |
dot | number | 2 | Size of one printed dot in CSS pixels. |
shimmer | boolean | true | Let the dots shimmer and a gloss band pass over the pill now and then. |
sway | boolean | true | Let the icon sway. |
iconFill | boolean | false | Fill the icon's shapes as well as its lines. Suits solid icons; line icons usually look best unfilled. |
className | string | – | Classes for the pill. |
style | CSSProperties | – | Inline style for the pill. |
Nimmt auch alle Props von Omit<HTMLAttributes<HTMLElement>, 'children'>.
A11y
Tastatur
With as="button" or as="a" it is a native button or link with a visible focus ring. Hover and focus speed up the sway. Space applies only to as="button".
Screenreader
The label is real text. The dithered canvases and the source icon are aria-hidden. If the label alone is not clear, for example a bare count, pass aria-label, as the demo’s like button does.
Reduzierte Bewegung
Under reduced motion the dither and the icon stand still. The shimmer runs at about 15 fps and stops off screen.
Sonstiges
Label colour is set per tone for contrast. If you change inks, set labelColor to match.