Socket
Socket
Sign inDemoInstall

@equinor/fusion-react-markdown

Package Overview
Dependencies
39
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @equinor/fusion-react-markdown

React component for editing morkdown language


Version published
Maintainers
4
Created

Readme

Source

@equinor/fusion-react-markdown

Published on npm

Storybook

Fusion Web Component

Installation

npm install @equinor/fusion-react-markdown

Markdown Editor

Example
import { MarkdownEditor } from '@equinor/fusion-react-markdown';

<MarkdownEditor props>
  **some** markdown *text*
</MarkdownEditor>
Usage
import { MarkdownEditor } from '@equinor/fusion-react-markdown';

const markdown = "# my heading here";
<MarkdownEditor value={markdown} onInput={(e)=>{console.log(e.target._value)}} change={console.log} />
Properties/Attributes
NameTypeDefaultDescription
menuItemsArray<MdMenuItemType>*['strong', 'em', 'bullet_list', 'ordered_list']List of visible menu buttons
minHeightstring''Markdown Editor minimum height
valuestring''Markdown editors value
menuSizeMenuSizes**'medium'Size of the menu buttons

* Array<MdMenuItemType> is list of showing visible menu buttons available as MdMenuItemType.

type MdMenuItemType =
  | 'strong'
  | 'em'
  | 'link'
  | 'ordered_list'
  | 'bullet_list'
  | 'paragraph'
  | 'blockquote'
  | 'h1'
  | 'h2'
  | 'h3';

* MenuSizes type imported from markdown component.

type MenuSizes = 'small' | 'medium' | 'large';

Keywords

FAQs

Last updated on 27 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc