Skip to content

Interface: CssCondition ​

Defined in: packages/core/src/model.ts:179

A conditional-support block the component's rules sit under.

Properties ​

containerName? ​

ts
optional containerName?: string;

Defined in: packages/core/src/model.ts:185

A container name, for @container blocks that target a named container.


description? ​

ts
optional description?: string;

Defined in: packages/core/src/model.ts:187

Prose from a @container/@supports/@media/@responsive doc tag, when authored.


query ​

ts
query: string;

Defined in: packages/core/src/model.ts:183

The condition text, e.g. (min-width: 40rem) or (display: grid).


type ​

ts
type: "container" | "supports" | "media";

Defined in: packages/core/src/model.ts:181

Which at-rule expressed the condition.

Released under the MIT License