Cover
A component for displaying a cover image with an interactive picker.

Installation
Examples
Notion Cover

Cover Picker
API Reference
Cover
Prop | Type | Default | Description |
---|---|---|---|
unsplashAPIKey * | string | - | The Unsplash access key from Unsplash Developers. |
url | string | - | The current URL of the cover image (controlled). |
alt | string | - | The fallback text to display. |
onSelect | (url: string) => void | - | Handler that is called when a cover image is selected or when a URL is submitted. |
onUpload | (file: File) => void | - | Handler that is called when a cover image is submitted. |
onRemove | () => void | - | Handler that is called when the remove button is clicked. |
CoverPicker
Prop | Type | Default | Description |
---|---|---|---|
unsplashAPIKey * | string | - | The Unsplash access key from Unsplash Developers. |
onSelect | (url: string) => void | - | Handler that is called when a cover image is selected or when a URL is submitted. |
onUpload | (file: File) => void | - | Handler that is called when a cover image is submitted. |
onRemove | () => void | - | Handler that is called when the remove button is clicked. |