@fds-components-public/fds-gradient-editor
v1.0.11
Published
[![Gyre SDK](https://img.shields.io/badge/Gyre%20SDK-Explore-blue?style=for-the-badge&logo=github)](https://flyingdogsoftware.github.io/gyre-sdk/) [![Gyre Extensions](https://img.shields.io/badge/Gyre%20Extensions-Repository-blue?style=for-the-badge&logo=
Downloads
113
Readme
fds-gradient-editor 🌈🖌️✨
Overview
The fds-gradient-editor is a simple gradient editor made with Svelte as a Web Component. It can be used in the Gyre form editor as an element for the Gyre user interface.
Installation
npm i @fds-components-public/fds-gradient-editor
Usage
<script src="<Path>/fds-gradient-editor.js"></script>
<fds-gradient-editor value="gradient definitions"></fds-gradient-editor>
Example
<fds-gradient-editor value="0:255,0,0
25:255,255,255
50:0,255,0
75:0,0,255" onchange="console.log(this.value)"></fds-gradient-editor>
produces output:
So value is a list with gradient stops (0 to 100 max), a colon, and color for each line.
Join Our Developer Community
Want to contribute or just connect with other developers working on Gyre projects? Join our developer group on Discord!
This README follows a similar format with badges, links, and an overview of the gradient editor.