UI component

Logo

Logo renders your brand lockup and icon states with simple props for collapsed navigation and size variants.

Installation

Install the package in your app.

pnpm add @rapidset/rapidkit

Usage

Import components from the package entrypoint.

import { Logo } from '@rapidset/rapidkit';

Examples

Preview the component and copy the snippet.

API Reference

Commonly used props at a glance.

PropDescription
openWhen false, the component switches to icon mode for collapsed sidebar layouts.
showIcon and showTextControls whether the icon, full lockup, or icon-only state should render.
sizeApplies small, medium, or large sizing presets for common layout contexts.
logoSrc and iconSrcLets consumers provide app-specific logo and icon assets while keeping the component reusable.
alt and testIdSets image accessibility text and deterministic selectors for tests.

Accessibility

The underlying image forwards alt text so assistive technology can announce the brand asset meaningfully.

Integration notes

Use brand assets from your public app path and keep this component presentational by handling brand selection outside the component.