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
API reference
Logo
| Prop | Type | Description |
|---|---|---|
| children | string | number | bigint | boolean | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal | Promise<AwaitedReactNode> | Custom artwork (inline SVG, image...). Sized to fill the logo box. |
| disabled | boolean | |
| render | ReactElement<Record<string, unknown>, string | JSXElementConstructor<any>> | Render as another element or router link, e.g. `render={<Link to="/" />}`. |
| alt | string | |
| src | string | Image URL for your own logo. Ignored when `children` is given. |
| isSingle | boolean | `true` renders the square mark (40px), `false` the wide wordmark (102x36). |