Skip to content
filedom
Esc
↑↓navigate↵open⌘Jpreview
On this page

Wallpaper

Sets the desktop wallpaper.

import { Wallpaper } from 'filedom';

<Wallpaper source={{ kind: 'color', value: '#1c1917' }} />

The wallpaper is restored when the component unmounts. A flat colour also becomes the background of the enclosing StageProvider, unless the provider sets background itself. Render the wallpaper before the stages so they see the colour.

Props

PropType
sourceWallpaperSource

{ kind: 'color', value, size? }, { kind: 'path', path } or { kind: 'data', base64 }.

TypeWallpaperSource

Was this page helpful?