remirror/remirror

View on GitHub
docs/extensions/bold-extension.mdx

Summary

Maintainability
Test Coverage
---
hide_title: true
title: 'BoldExtension'
---

import Basic from '../../website/extension-examples/extension-bold/basic';

# `BoldExtension`

## Summary

When added to your editor it will provide the `toggleBold` command which makes the text under the cursor / or at the provided position range bold.

## Usage

### Installation

This extension is installed for you when you install the main `remirror` package.

You can use the imports in the following way:

```ts
import { BoldExtension } from 'remirror/extensions';
```

The extension is provided by the `@remirror/extension-bold` package.

### Examples

<Basic />

## API

- [BoldExtension](../api/extension-bold)