Pacote
    Preparing search index...

    Module @pacote/get-style

    @pacote/get-style

    version minified minified + gzip

    Get an element's computed style for the provided CSS property.

    yarn add @pacote/get-style
    
    import { getStyle } from '@pacote/get-style'

    // When the body element has `font-size: 20px`.
    getStyle(document.body, 'fontSize') // => '20px'

    getStyle() takes an element and the CSS property to fetch and returns its computed value.

    MIT © Luís Rodrigues.

    Functions

    getStyle