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 class="gpcr-interaction">
    <div class="gpcr-result">
         <div class="gpcr-mode" data-mode="linear"></div>

            <div class="gpcr-angle">

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


Flat, Simple, Hackable Color-Picker.

Latest version published 3 days ago

Package Health Score

86 / 100
Full package analysis