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#
| Property | Type | Description | Defined in |
|---|---|---|---|
breakpoint? | string | Matches the root SmartContainer’s active breakpoint, such as portrait or a name of your own. | ui/layout/flex-container.ts:41 |
maxWidth? | number | Matches an area at most this wide, in design units. | ui/layout/flex-container.ts:45 |
minWidth? | number | Matches 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 |
style | SmartStyle | Values that replace the base ones. | ui/layout/flex-container.ts:47 |