Brand
With Logo Image
<neura::brand name="Neura">
<x-slot:logo>
<img src="/path/to/logo.png" alt="Neura Logo" class="h-8 w-auto" />
</x-slot:logo>
</neura::brand>
<!-- Or with URL string -->
<neura::brand
name="Neura"
logo="/path/to/logo.png"
alt="Neura Logo"
/>
Light and Dark Mode Logos
logoLight and
logoDark
props:
<neura::brand
name="Neura"
href="#"
logoLight="/logo-light.svg"
logoDark="/logo-dark.svg"
/>
With Logo Slots
<neura::brand name="Neura" href="#">
<x-slot:logoLight>
<img src="/logo-light.svg" alt="Neura Logo" class="h-8 w-auto" />
</x-slot:logoLight>
<x-slot:logoDark>
<img src="/logo-dark.svg" alt="Neura Logo" class="h-8 w-auto" />
</x-slot:logoDark>
</neura::brand>
logoLight or
logoDark is
provided, the logo prop will
be used as fallback for the missing mode.
With Logo Slot
<neura::brand name="Neura">
<x-slot:logo>
<div class="h-8 w-8 rounded-lg bg-blue-600">
N
</div>
</x-slot:logo>
</neura::brand>
Logo Only
<neura::brand>
<x-slot:logo>
<img src="/path/to/logo.png" alt="Neura" class="h-10 w-10" />
</x-slot:logo>
</neura::brand>
Custom Link
<neura::brand
name="Neura"
href="https://docs.neuraui.dev"
/>
<neura::brand
name="External Link"
href="https://example.com"
target="_blank"
/>
Custom Logo Styling
<neura::brand name="Custom Logo">
<x-slot:logo>
<div class="h-10 w-10 rounded-full bg-blue-600">
<!-- Logo content -->
</div>
</x-slot:logo>
</neura::brand>
Use Cases
Navigation Header
Sidebar Brand
Footer Brand
Best Practices
Add descriptive alternative text for accessibility
The brand typically serves as a link to the application's home page
Logos should be sharp and visible in both light and dark modes
Use the same brand style throughout the application
Verify that the brand displays correctly on all screens
Brand Component Improvements
Brand Usage & Features
alt for accessibility, and logoClass for custom styling. The
href and target props make brands clickable and support external
links. Use slots for advanced logo layouts and ensure visual consistency across your app.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| href | string | # | Link URL for the brand |
| logo | string|slot | null | Logo image URL or slot content |
| name | string | '' | Brand name text |
| alt | string | '' | Alt text for logo image |
| target | string | _self | Link target (_self, _blank, etc.) |
| logoLight | string|slot | null | Logo for light mode (URL string or slot content) |
| logoDark | string|slot | null | Logo for dark mode (URL string or slot content) |
| logoClass | string | '' | Additional CSS classes for logo styling |