Skip to content
pixi-silk
GitHub repository
Interface

MediaRule

import type { MediaRule } from 'pixi-silk/ui/layout';

A style that applies when the root’s layout area, or the root SmartContainer’s breakpoint, matches.

Properties#

PropertyTypeDescriptionDefined in
breakpoint?stringMatches the root SmartContainer’s active breakpoint, such as portrait or a name of your own.ui/layout/flex-container.ts:41
maxWidth?numberMatches an area at most this wide, in design units.ui/layout/flex-container.ts:45
minWidth?numberMatches an area at least this wide, in design units.ui/layout/flex-container.ts:43
orientation?"portrait" | "landscape"Matches a portrait (taller than wide) or a landscape area.ui/layout/flex-container.ts:39
styleSmartStyleValues that replace the base ones.ui/layout/flex-container.ts:47