@plumbblake/styled-components-feature-detection

Feature detection utilities for styled-components

Usage no npm install needed!

<script type="module">
  import plumbblakeStyledComponentsFeatureDetection from 'https://cdn.skypack.dev/@plumbblake/styled-components-feature-detection';
</script>

README

styled-components-feature-detection

Feature detection utilities for styled-components

ref

Boolean value indicating if the version of styled-components installed supports ref property.

import isRefSupported from "@plumbblake/styled-components-feature-detection/ref"

createGlobalStyle

Boolean value indicating if the version of styled-components installed supports createGlobalStyle.

import isCreateGlobalStyleSupported from "@plumbblake/styled-components-feature-detection/createGlobalStyle"

Contributing

See contributing.md