MindeesUI
ComponentsMedia

Logo

Renders a brand mark as an image when a source is given, otherwise as a text wordmark, sizing by a logical height while preserving aspect ratio.

Logo displays a brand mark. When a source is provided it renders the image at a fixed logical height with its width auto-derived from the aspect ratio; otherwise it falls back to a bold text wordmark from label. It composes the base Image and Text.

Import

import { Logo } from '@mindees/ui';

Usage

<Logo source="https://example.com/logo.svg" height={28} accessibilityLabel="Acme" />

<Logo label="Acme" />

Props

PropTypeDefaultDescription
sourcestring | ImageSourcePropTypeImage source; when present it wins over label.
labelstringText wordmark used when no source is given.
heightnumber32Logical height of the mark in points; width derives from it.
accessibilityLabelstringDefaults to label, then to a generic "Logo".
styleStyleProp<ViewStyle>Style for the outer container.
imageStyleStyleProp<ImageStyle>Style forwarded to the image when a source is rendered.

Accessibility

The container uses accessibilityRole="image" with the resolved accessibilityLabel. The inner image is marked accessible={false} so the mark is announced once, by the container, rather than twice.

On this page