# svesh

Latest version **1.0.5** (published 2022-07-31) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install svesh
pnpm add svesh
yarn add svesh
bun add svesh
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2022-07-31 |
| First published | 2022-07-31 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 48.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Nick Revenko |
| Maintainers | koodeau |
| Keywords | svelte, sveltekit, mesh, webgl, components, gradient, ui, canvas |

## Links

- npm: https://www.npmjs.com/package/svesh
- Repository: https://github.com/koodeau/svesh
- Homepage: https://github.com/koodeau/svesh#readme
- Issues: https://github.com/koodeau/svesh/issues
- npm.io page: https://npm.io/package/svesh

## Alternatives

- [@progress/kendo-ooxml](https://npm.io/package/@progress/kendo-ooxml.md) — 152.1K weekly downloads
- [@progress/kendo-react-ripple](https://npm.io/package/@progress/kendo-react-ripple.md) — 8.0K weekly downloads
- [@progress/kendo-react-orgchart](https://npm.io/package/@progress/kendo-react-orgchart.md) — 4.3K weekly downloads
- [@praxisui/dynamic-fields](https://npm.io/package/@praxisui/dynamic-fields.md) — 2.4K weekly downloads
- [@progress/kendo-vue-listbox](https://npm.io/package/@progress/kendo-vue-listbox.md) — 932 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2022-07-31
- 1.0.4 — 2022-07-31
- 1.0.2 — 2022-07-31
- 1.0.0 — 2022-07-31

## README

<p align="center">
  <img alt="Svesh" src="https://mintstack.ams3.cdn.digitaloceanspaces.com/static/img/svesh.png" />
</p>

# Svesh

Simple Svelte component library to easily use generated mesh gradients in your project.

## Installing

```bash
npm i --save-dev svesh
```

## Using

```svelte
<script>
    import { Svesh } from "svesh";
</script>

<Svesh />

```

## Advanced Usage

You can omit the default settings by setting props to Svesh:

```svelte
<script>
    import { Svesh } from "svesh";

    // default: random
    const colors = ["#ef008f", "#6ec3f4", "#7038ff", "#ffba27"];

    // default: false. If set to true then all instances will be same color
    const groupColors = true;
    
    // default: "g". Used by svesh as canva id with added meshId and its instance index;
    const prefix = "g";

    // default: 1. How many canvas instances you'd need to generate.
    const instances = 5;

    // these values are default. These properties are assigned to all instances.
    const width = 1920;
    const height = 600;
    
    // default: random. Use this to set static gradient.
    const meshId = 666;

    // default: false. Use this prevent other instances from generating their own meshId. Use this to set static gradient.
    const fixMeshId = true;

    // default: svesh. Importnant: change this identifier if you want to use Svesh more than once in different places.
    export let identifier = "svesh";
</script>

<Svesh {colors} {groupColors} {prefix} {instances} {width} {height} {meshId} {fixMeshId} {identifier} />

```

Please, star this repo ;)

---
_Source: https://npm.io/package/svesh · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
