Theemo / @theemo/theme / isBrowserFeature
Function: isBrowserFeature()
ts
function isBrowserFeature(feature): feature is BrowserFeature;
Defined in: features.ts:180
Verifies if the given feature has the browser as principal that can change it based on media query or other mechanics
Parameters
Parameter | Type | Description |
---|---|---|
feature | Feature | the feature in question |
Returns
feature is BrowserFeature
true
for a browser feature, otherwise false
See
https://theemo.io/design-tokens/traits#principals-and-agents