# Getting Started

> Install and use @gallerykit/toolbar.

Source: https://gallerykit.n.yatsyk.com/docs/toolbar/getting-started

# Getting Started with @gallerykit/toolbar

## 1. Install

```bash
pnpm add @gallerykit/toolbar
```

If your app does not yet depend on `@gallerykit/core`, the package will pull it in automatically.

## 2. Use it

```tsx
import { GalleryToolbar, ViewSwitcher, SearchInput } from "@gallerykit/toolbar";

<GalleryToolbar>
  <ViewSwitcher value={view} onChange={setView} options={["grid", "masonry"]} />
  <SearchInput value={query} onChange={setQuery} />
</GalleryToolbar>
```

## Next steps

* Read the [API reference](./api.mdx) for the full list of exports.
* Browse the rest of the [GalleryKit docs](/docs) to see which layouts, skins, and themes are available.
