data-theme = pinion
Indicator
Wrap daisyUI 5 indicator class to overlay a badge or dot at a corner. position (9 combos: top/middle/bottom × start/center/end), dot (bool; true = plain dot, no text), color (8 colors, default=error), appearance (solid default / soft / outline / ghost / dash). Default is solid (dark fill) for strong "has notification" signal; soft is opt-in. Slot $badge for the badge, $slot for the element beneath.
Minimal — a "3" badge at top-end (default color=error)
< x-indicator >
< x-slot:badge > 3 </ x-slot:badge >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-full border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " notifications " >
< x-i type = " bell " variant = " linear " class = " w-5 h-5 " />
</ button >
</ x-indicator >
Loading…
Couldn't load the HTML
Retry
position — top / middle / bottom x start / center / end
< x-indicator position = " top-start " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > top-start </ div > </ x-indicator >
< x-indicator position = " top-center " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > top-center </ div > </ x-indicator >
< x-indicator position = " top-end " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > top-end </ div > </ x-indicator >
< x-indicator position = " middle-start " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > middle-start </ div > </ x-indicator >
< x-indicator position = " middle-center " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > middle-center </ div > </ x-indicator >
< x-indicator position = " middle-end " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > middle-end </ div > </ x-indicator >
< x-indicator position = " bottom-start " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > bottom-start </ div > </ x-indicator >
< x-indicator position = " bottom-center " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > bottom-center </ div > </ x-indicator >
< x-indicator position = " bottom-end " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > bottom-end </ div > </ x-indicator >
Loading…
Couldn't load the HTML
Retry
dot vs badge — a plain dot with no text (dot=true) vs badge text (dot=false, default)
< x-indicator :dot = " true " >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-full border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " notifications " >
< x-i type = " bell " variant = " linear " class = " w-5 h-5 " />
</ button >
</ x-indicator >
< x-indicator >
< x-slot:badge > 12 </ x-slot:badge >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-full border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " notifications " >
< x-i type = " bell " variant = " linear " class = " w-5 h-5 " />
</ button >
</ x-indicator >
Loading…
Couldn't load the HTML
Retry
color variants — every color (default=error is first)
< x-indicator color = " error " > < x-slot:badge > 1 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > error </ div > </ x-indicator >
< x-indicator color = " primary " > < x-slot:badge > 2 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > primary </ div > </ x-indicator >
< x-indicator color = " secondary " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > secondary </ div > </ x-indicator >
< x-indicator color = " accent " > < x-slot:badge > 4 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > accent </ div > </ x-indicator >
< x-indicator color = " info " > < x-slot:badge > 5 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > info </ div > </ x-indicator >
< x-indicator color = " success " > < x-slot:badge > 6 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > success </ div > </ x-indicator >
< x-indicator color = " warning " > < x-slot:badge > 7 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > warning </ div > </ x-indicator >
Loading…
Couldn't load the HTML
Retry
appearance — solid (default) / soft / outline / ghost / dash
< x-indicator appearance = " solid " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > solid </ div > </ x-indicator >
< x-indicator appearance = " soft " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > soft </ div > </ x-indicator >
< x-indicator appearance = " outline " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > outline </ div > </ x-indicator >
< x-indicator appearance = " ghost " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > ghost </ div > </ x-indicator >
< x-indicator appearance = " dash " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > dash </ div > </ x-indicator >
Loading…
Couldn't load the HTML
Retry
real-world — avatar dot / cart count / inbox unread / NEW tag
< x-indicator :dot = " true " color = " success " position = " bottom-end " >
< div class = " w-14 h-14 rounded-full bg-base-300 flex items-center justify-center " >
< x-i type = " user " variant = " bold " class = " w-8 h-8 text-base-content/40 " />
</ div >
</ x-indicator >
< x-indicator color = " primary " >
< x-slot:badge > 5 </ x-slot:badge >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-[var(--radius-field)] border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " cart " >
< x-i type = " cart-large " variant = " linear " class = " w-6 h-6 " />
</ button >
</ x-indicator >
< x-indicator >
< x-slot:badge > 99+ </ x-slot:badge >
< button class = " inline-flex items-center justify-center gap-2 h-10 px-4 rounded-[var(--radius-field)] border-[length:var(--border)] border-base-content/10 bg-base-200 text-sm font-medium hover:bg-base-300 transition-colors cursor-pointer " aria-label = " inbox " >
< x-i type = " inbox " variant = " linear " class = " w-5 h-5 " />
Inbox
</ button >
</ x-indicator >
< x-indicator color = " warning " position = " top-start " >
< x-slot:badge > NEW </ x-slot:badge >
< div class = " w-40 h-24 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-sm text-base-content/60 " >
product card
</ div >
</ x-indicator >
Loading…
Couldn't load the HTML
Retry
data-theme = pinion-dark
Indicator
Wrap daisyUI 5 indicator class to overlay a badge or dot at a corner. position (9 combos: top/middle/bottom × start/center/end), dot (bool; true = plain dot, no text), color (8 colors, default=error), appearance (solid default / soft / outline / ghost / dash). Default is solid (dark fill) for strong "has notification" signal; soft is opt-in. Slot $badge for the badge, $slot for the element beneath.
Minimal — a "3" badge at top-end (default color=error)
< x-indicator >
< x-slot:badge > 3 </ x-slot:badge >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-full border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " notifications " >
< x-i type = " bell " variant = " linear " class = " w-5 h-5 " />
</ button >
</ x-indicator >
Loading…
Couldn't load the HTML
Retry
position — top / middle / bottom x start / center / end
< x-indicator position = " top-start " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > top-start </ div > </ x-indicator >
< x-indicator position = " top-center " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > top-center </ div > </ x-indicator >
< x-indicator position = " top-end " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > top-end </ div > </ x-indicator >
< x-indicator position = " middle-start " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > middle-start </ div > </ x-indicator >
< x-indicator position = " middle-center " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > middle-center </ div > </ x-indicator >
< x-indicator position = " middle-end " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > middle-end </ div > </ x-indicator >
< x-indicator position = " bottom-start " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > bottom-start </ div > </ x-indicator >
< x-indicator position = " bottom-center " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > bottom-center </ div > </ x-indicator >
< x-indicator position = " bottom-end " > < x-slot:badge > ! </ x-slot:badge > < div class = " w-24 h-16 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > bottom-end </ div > </ x-indicator >
Loading…
Couldn't load the HTML
Retry
dot vs badge — a plain dot with no text (dot=true) vs badge text (dot=false, default)
< x-indicator :dot = " true " >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-full border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " notifications " >
< x-i type = " bell " variant = " linear " class = " w-5 h-5 " />
</ button >
</ x-indicator >
< x-indicator >
< x-slot:badge > 12 </ x-slot:badge >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-full border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " notifications " >
< x-i type = " bell " variant = " linear " class = " w-5 h-5 " />
</ button >
</ x-indicator >
Loading…
Couldn't load the HTML
Retry
color variants — every color (default=error is first)
< x-indicator color = " error " > < x-slot:badge > 1 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > error </ div > </ x-indicator >
< x-indicator color = " primary " > < x-slot:badge > 2 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > primary </ div > </ x-indicator >
< x-indicator color = " secondary " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > secondary </ div > </ x-indicator >
< x-indicator color = " accent " > < x-slot:badge > 4 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > accent </ div > </ x-indicator >
< x-indicator color = " info " > < x-slot:badge > 5 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > info </ div > </ x-indicator >
< x-indicator color = " success " > < x-slot:badge > 6 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > success </ div > </ x-indicator >
< x-indicator color = " warning " > < x-slot:badge > 7 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > warning </ div > </ x-indicator >
Loading…
Couldn't load the HTML
Retry
appearance — solid (default) / soft / outline / ghost / dash
< x-indicator appearance = " solid " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > solid </ div > </ x-indicator >
< x-indicator appearance = " soft " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > soft </ div > </ x-indicator >
< x-indicator appearance = " outline " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > outline </ div > </ x-indicator >
< x-indicator appearance = " ghost " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > ghost </ div > </ x-indicator >
< x-indicator appearance = " dash " color = " error " > < x-slot:badge > 3 </ x-slot:badge > < div class = " w-20 h-14 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-xs text-base-content/60 " > dash </ div > </ x-indicator >
Loading…
Couldn't load the HTML
Retry
real-world — avatar dot / cart count / inbox unread / NEW tag
< x-indicator :dot = " true " color = " success " position = " bottom-end " >
< div class = " w-14 h-14 rounded-full bg-base-300 flex items-center justify-center " >
< x-i type = " user " variant = " bold " class = " w-8 h-8 text-base-content/40 " />
</ div >
</ x-indicator >
< x-indicator color = " primary " >
< x-slot:badge > 5 </ x-slot:badge >
< button class = " inline-flex items-center justify-center w-10 h-10 rounded-[var(--radius-field)] border-[length:var(--border)] border-base-content/10 bg-base-200 hover:bg-base-300 transition-colors cursor-pointer " aria-label = " cart " >
< x-i type = " cart-large " variant = " linear " class = " w-6 h-6 " />
</ button >
</ x-indicator >
< x-indicator >
< x-slot:badge > 99+ </ x-slot:badge >
< button class = " inline-flex items-center justify-center gap-2 h-10 px-4 rounded-[var(--radius-field)] border-[length:var(--border)] border-base-content/10 bg-base-200 text-sm font-medium hover:bg-base-300 transition-colors cursor-pointer " aria-label = " inbox " >
< x-i type = " inbox " variant = " linear " class = " w-5 h-5 " />
Inbox
</ button >
</ x-indicator >
< x-indicator color = " warning " position = " top-start " >
< x-slot:badge > NEW </ x-slot:badge >
< div class = " w-40 h-24 bg-base-200 border border-base-300 rounded-[var(--radius-box)] flex items-center justify-center text-sm text-base-content/60 " >
product card
</ div >
</ x-indicator >
Loading…
Couldn't load the HTML
Retry