XDSMediaTheme@xds/core · theme
Usage
Applies a theme that adapts to the system light/dark preference via prefers-color-scheme.Import
tsimport {XDSMediaTheme} from '@xds/core/theme'
Props
| Prop | Type | Description |
|---|---|---|
moderequired | 'dark' | 'light' | Surface luminance context — dark for light text on dark backgrounds, light for dark text on light backgrounds. |
childrenrequired | ReactNode | Content to render in the media context. |