Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

0xycvv/hexx

Repository files navigation

Getting Started

install package

npm install @hexx/editor
# or
yarn add @hexx/editor

Example

import { Editor } from '@hexx/editor';
import {
  BlockMap, // default block mapping
  // preset
  PlusButton,
  TuneButton,
  InlineTool,
  // additional inline tool
  InlineCode,
  InlineMarker,
  InlineLink
} from '@hexx/editor/components';

<Editor blockMap={BlockMap}>
  <PlusButton />
  <TuneButton />
  <InlineTool>
    <InlineMarker />
    <InlineCode />
    <InlineLink />
  </InlineTool>
</Editor>