Skip to content

Logo

Xerobi logo as a link or inline mark.

Installation

bun add @xerobi/ui
import { Logo } from "@xerobi/ui/logo"

This component is client-side. In Astro, hydrate it with a client directive.

Examples

Default

import { Logo } from "@xerobi/ui/logo"

export function LogoDefault() {
  return <Logo disabled />
}

API reference

PropTypeDescription
childrenstring | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode>Custom artwork (inline SVG, image...). Sized to fill the logo box.
disabledboolean
renderReactElement<Record<string, unknown>, string | JSXElementConstructor<any>>Render as another element or router link, e.g. `render={<Link to="/" />}`.
altstring
srcstringImage URL for your own logo. Ignored when `children` is given.
isSingleboolean`true` renders the square mark (40px), `false` the wide wordmark (102x36).

Search documentation

Search pages, components and blocks.