v0.0.2
Demos (demo panel, opens in a new tab)

Logo

A logo with light and dark versions, for the layouts' logo slot.

zb:logo zubazar/ui · free (MIT)

Light and dark version

BLADE

src is the light-mode image and dark-src the dark-mode one; set the height with class.

blade
<zb:layout.sidebar brand-name="Acme Store">
    <zb:slot:logo>
        <zb:logo src="/img/logo.svg" dark-src="/img/logo-white.svg" class="h-8" />
    </zb:slot:logo>
    …
</zb:layout.sidebar>
PropValues
srcLight mode image
dark-srcDark mode image
altDefault: the application's name

Props

The values the component takes. What are props and slots?

PropTypeDefaultDescription
src— — Required; the light mode image
dark-src—nullThe dark mode (and dark menu) image
alt—nullDefault config('app.name')

Developer notes

Events, hooks and details
  • The dark version shows in dark mode and in the dark menu of light mode (semi-dark).
  • Without dark-src the one image is used everywhere; the width follows the aspect ratio.