# Brand

Display your company or application's logo and name in a clean, consistent way across your interface.

```tsx
import { Brand } from '@fluxui-dev/react';

<Brand href="#" logo="/img/demo/logo.png" logoDark="/img/demo/dark-mode-logo.png" name="Acme Inc." />

<Brand
    href="#"
    name="Acme Inc."
    logo={<i className="font-serif font-bold">A</i>}
    logoClassName="bg-accent text-accent-foreground"
/>
```

## Custom logo

Pass any element, such as an icon, as the `logo` prop instead of an image URL, and style the box around it with `logoClassName`.

```tsx
import { RocketLaunchIcon } from '@fluxui-dev/react/icons';

<Brand
    href="#"
    name="Launchpad"
    logo={<RocketLaunchIcon variant="micro" />}
    logoClassName="size-6 rounded-full bg-cyan-500 text-white"
/>
```

## Logo only

Display just the logo without the company name by omitting the `name` prop.

```tsx
<Brand href="#" logo="/img/demo/logo.png" logoDark="/img/demo/dark-mode-logo.png" />
```

## Examples

### Header with brand

```tsx
import { Brand, Header, Navbar, Profile, Spacer } from '@fluxui-dev/react';

<Header className="px-4! w-full bg-zinc-50 dark:bg-zinc-800 rounded-lg border border-zinc-100 dark:border-white/5">
    <Brand
        href="#"
        name="Acme Inc."
        logo={<i className="font-serif font-bold">A</i>}
        logoClassName="bg-accent text-accent-foreground"
    />

    <Navbar>
        <Navbar.Item href="#" current>Home</Navbar.Item>
        <Navbar.Item badge="12" href="#">Inbox</Navbar.Item>
    </Navbar>

    <Spacer className="min-w-24" />

    <Profile circle chevron={false} avatar="https://unavatar.io/x/calebporzio" />
</Header>
```

## Reference

### Brand

**Prop:**

- `name` - Company or application name to display next to the logo.
- `logo` - URL to the image to display as logo, or an element, such as an SVG or icon.
- `logoDark` - Image URL shown instead of `logo` in dark mode when `logo` is a URL.
- `logoClassName` - CSS classes applied to the box around a `logo` element, such as its size, shape, and background.
- `alt` - Alternative text for the logo.
- `href` - URL to navigate to when the brand is clicked. Default: `/`. An in-app URL navigates through the link registered in `FluxProvider`.
- `render` - Element to render instead of the brand (such as a router link with props `href` can't carry), with the brand's props merged in. Also accepts a function that receives the props and returns an element.

**Attribute:**

- `data-flux-brand` - Applied to the root element for styling and identification.
