Logo
Documentation and examples for the Logo component.
When To Use
- When you need to display the brand logo in the navigation bar, footer, or login screens.
- When you need a responsive logo that can toggle between an icon-only mode and a full text mode based on available space.
Example Usage
The basic logo renders with an icon and the brand text.
astro
<Logo /> Variants
Icon Only
Use the iconOnly property to show only the icon, useful for responsive designs or compact navbars.
astro
<Logo iconOnly size="sm" />
<Logo iconOnly size="md" />
<Logo iconOnly size="lg" />
<Logo iconOnly size="xl" /> Sizes
The logo scales using the size property, which controls both icon dimensions and font size.
astro
<Logo size="sm" />
<Logo size="md" />
<Logo size="lg" />
<Logo size="xl" /> Orientation
The logo can be stacked vertically using orientation="vertical".
astro
<Logo orientation="vertical" size="xl" /> How to Use
To use the Logo component, import it from the components directory.
astro
---
import Logo from '@/components/general/Logo.astro';
---
<Logo size="lg" /> API
| Property | Description | Type | Default |
|---|---|---|---|
| size | Size of the logo, adjusting both icon and text. | 'sm' | 'md' | 'lg' | 'xl' | 'md' |
| orientation | Layout orientation of the logo. | 'horizontal' | 'vertical' | 'horizontal' |
| showText | Whether to show the text next to the icon. | boolean | true |
| iconOnly | Shows only the icon, overriding <code>showText</code>. | boolean | false |
| class | Additional CSS classes to apply. | string | - |