How to use the @simonwep/pickr.utils.createFromTemplate function in @simonwep/pickr

To help you get started, we’ve selected a few @simonwep/pickr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Simonwep / gpickr / src / js / template.js View on Github external
export default () => utils.createFromTemplate(`
<div class="gpickr">

    <div></div>
    <div class="gpcr-interaction">
    <div class="gpcr-result">
        
         <div class="gpcr-mode" data-mode="linear"></div>

            <div class="gpcr-angle">
                <div></div>
            </div>

            <div class="gpcr-pos">
                ${['tl', 'tm', 'tr', 'l', 'm', 'r', 'bl', 'bm', 'br'].map(v =&gt; `<div data-pos="${v}"></div>`).join('')}
            </div>
        </div></div></div>

@simonwep/pickr

Flat, Simple, Hackable Color-Picker.

MIT
Latest version published 6 months ago

Package Health Score

75 / 100
Full package analysis