# @memefighter/maker-svelte

> Add meme creation to your svelte app with this drop-in solution for world-class meme generation.

Latest version **0.0.5** (published 2023-08-01) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @memefighter/maker-svelte
pnpm add @memefighter/maker-svelte
yarn add @memefighter/maker-svelte
bun add @memefighter/maker-svelte
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2023-08-01 |
| First published | 2023-07-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | memefighterbyron, jorgenbuilder |

## Links

- npm: https://www.npmjs.com/package/@memefighter/maker-svelte
- npm.io page: https://npm.io/package/@memefighter/maker-svelte

## Dependencies (1)

- [@memefighter/maker-core](https://npm.io/package/@memefighter/maker-core.md) ^0.0.9

## Recent versions

- 0.0.5 (latest) — 2023-08-01
- 0.0.4 — 2023-07-26
- 0.0.3 — 2023-07-26
- 0.0.2 — 2023-07-26
- 0.0.1 — 2023-07-25

## README

# The Svelte Meme Fighter Meme Maker

Drop-in meme creation for svelte apps.

![meme maker](https://xw6bn-wyaaa-aaaag-abtbq-cai.raw.icp0.io/gh-meme-maker-preview.gif)

## Getting Started

This package provides drop-in react component for creating memes. For other frameworks, see (`[@memefighter/maker-core](https://www.npmjs.com/package/@memefighter/maker-core)`).

`npm i @memefighter/maker-svelte`

```svelte
<script lang="ts">
  import MemeMaker from "@memefighter/maker-svelte/index.svelte";

  /** Function which receives the meme as an image url when the user has finished creating it. */
  function handler (meme) {};

  /** Customize the appearance of the meme maker. These are all the options currently available. */
  const styleVariables = {
    "--foreground-color": "#fff",
    "--background-color": "#111",
    "--button-color": "#333"
  };

  /** Declare the width of the embedded meme maker iframe. */
  const width = 400;

  /** Declare the height of the embedded meme maker iframe. */
  const height = 400;
</script>

<main>
  <MemeMaker {handler} {styleVariables} {width} {height} />;
</main>
```

[See a functioning example on code sandbox](https://codesandbox.io/s/meme-maker-km4tpv).

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