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.
<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>
| Prop | Values |
|---|---|
src | Light mode image |
dark-src | Dark mode image |
alt | Default: the application's name |
Props
The values the component takes. What are props and slots?
| Prop | Type | Default | Description |
|---|---|---|---|
src | — | — | Required; the light mode image |
dark-src | — | null | The dark mode (and dark menu) image |
alt | — | null | Default config('app.name') |
Developer notes
- The dark version shows in dark mode and in the dark menu of light mode (semi-dark).
- Without
dark-srcthe one image is used everywhere; the width follows the aspect ratio.