Skip to Content
Notion UI

Unsplash

A search-enabled autocomplete grid for browsing and selecting Unsplash images.

Unsplash Default

<Unsplash apiKey={UNSPLASH_ACCESS_KEY} onSelect={setImage} />

Installation

pnpm add @notion-kit/ui

Examples


Basic

The picker opens inline, loads a default Unsplash collection, and searches remotely as the input changes.

Unsplash Default

Controlled Selection

Use onSelect to receive the full Unsplash image object and decide which URL size to store.

Unsplash Search

API Reference

Unsplash

Prop

Type

type UnsplashImage

type UnsplashImage = AssetBasic;

UnsplashImage is exported from @notion-kit/ui/unsplash and matches the unsplash-js basic asset shape.

On this page