# @editorjs/text-variant-tune

> Editor.js Block Tune allows applying one of defined text variant: **Call-out**, **Citation**, and **Details** to any block.

Latest version **1.0.3** (published 2024-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @editorjs/text-variant-tune
pnpm add @editorjs/text-variant-tune
yarn add @editorjs/text-variant-tune
bun add @editorjs/text-variant-tune
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2024-07-17 |
| First published | 2021-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 114.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | CodeX |
| Maintainers | codex-team |

## Links

- npm: https://www.npmjs.com/package/@editorjs/text-variant-tune
- Repository: https://github.com/editor-js/text-variant-tune
- npm.io page: https://npm.io/package/@editorjs/text-variant-tune

## Recent versions

- 1.0.3 (latest) — 2024-07-17
- 1.0.2 — 2024-05-28
- 1.0.1 — 2021-06-02
- 1.0.0 — 2021-06-01

## README

# Text Variant Tune

Editor.js Block Tune allows applying one of defined text variant: **Call-out**, **Citation**, and **Details** to any block.

<img src="./assets/tunes-overview.png" width="600" />

## Variants

### Call-out

For important information the author wants to emphasize.

<img src="./assets/call-out.png" width="600" />

### Citation

To cite some full-text from a different source without using the Quote tool.

<img src="./assets/citation.png" width="600" />

### Details

To add some information that is less important.

<img src="./assets/details.png" width="600" />

## How to use

1. Install

```js
yarn add @editorjs/text-variant-tune
```

2. Connect

```js
import EditorJS from '@editorjs/editorjs';
import TextVariantTune from '@editorjs/text-variant-tune';

/**
 * Editor.js configuration
 */
const editor = new EditorJS({
  /**
   * Connect tool
   */
  tools: {
    textVariant: TextVariantTune
  },

  /**
   * Apply to all the blocks
   */
  tunes: ['textVariant'],

  // ...
})
```

Optionally, you can connect this Tune only for specified blocks:

```js
import EditorJS from '@editorjs/editorjs';
import TextVariantTune from '@editorjs/text-variant-tune';

/**
 * Editor.js configuration
 */
const editor = new EditorJS({
  tools: {
    textVariant: TextVariantTune,
    paragraph: { // apply only for the 'paragraph' tool
      tunes: ['textVariant'],
    }
  },
})
```

## About

CodeX is a software engineering club unifying passionate engineers and designers around the world interested in making high-quality open-source projects and getting a priceless experience of making full-valued products on a global market.

[twitter.com/codex_team](https://twitter.com/codex_team)

[codex.so](https://codex.so)

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