Breakpoint

data class Breakpoint(val conditions: List<MediaQuery>, val nodes: Map<String, NodeProps>, val style: Map<String, Style>)

A single responsive breakpoint: overrides applied when its conditions match the viewport.

Mirrors one entry of the spec's breakpoints array. When every condition holds, the breakpoint's style selectors and per-id nodes prop overrides are merged over the base Spec.

Parameters

conditions

media queries that must all match for this breakpoint to apply.

nodes

per-node prop overrides keyed by node id.

style

additional selector → Style entries layered over the base style record.

Constructors

Link copied to clipboard
constructor(conditions: List<MediaQuery>, nodes: Map<String, NodeProps>, style: Map<String, Style>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard