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.

Asterisk UI Logo
AsteriskUI

Variants

Icon Only

Use the iconOnly property to show only the icon, useful for responsive designs or compact navbars.

Asterisk UI Logo
Asterisk UI Logo
Asterisk UI Logo
Asterisk UI Logo

Sizes

The logo scales using the size property, which controls both icon dimensions and font size.

Asterisk UI Logo
AsteriskUI
Asterisk UI Logo
AsteriskUI
Asterisk UI Logo
AsteriskUI
Asterisk UI Logo
AsteriskUI

Orientation

The logo can be stacked vertically using orientation="vertical".

Asterisk UI Logo
AsteriskUI

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 -