Unsplash
A search-enabled autocomplete grid for browsing and selecting Unsplash images.
Installation
pnpm add @notion-kit/uiExamples
Basic
The picker opens inline, loads a default Unsplash collection, and searches remotely as the input changes.
Controlled Selection
Use onSelect to receive the full Unsplash image object and decide which URL size to store.
API Reference
Unsplash
| Prop | Type | Default | Description |
|---|---|---|---|
apiKey* | string | - | The Unsplash access key from Unsplash Developers. |
onSelect | (image: UnsplashImage) => void | - | Handler called when an image is selected. Use image.urls.small, regular, full, or raw. |
type UnsplashImage
type UnsplashImage = AssetBasic;UnsplashImage is exported from @notion-kit/ui/unsplash and matches the unsplash-js basic asset shape.