Skip to main content
Version: Next

ThemeProvider API

import { ThemeProvider } from '@editora/ui-react';

Props​

PropTypeDescription
children (required)React.ReactNode
densityThemeTokens['density']App-wide density: rescales the shared control sizes (height, padding, font size) and default gap for every component under this provider. Same as tokens.density.
storageKeystring | nullIf provided (default: 'editora.theme.tokens'), theme tokens will be persisted to localStorage. Set to null to disable persistence.
tokensPartial<ThemeTokens>