Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentful/default-field-editors

Package Overview
Dependencies
Maintainers
99
Versions
384
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentful/default-field-editors

```bash npm install @contentful/default-field-editors ```

  • 0.8.10
  • Source
  • npm
  • Socket score

Version published
Maintainers
99
Created
Source

@contentful/default-field-editors

npm install @contentful/default-field-editors

This package provides React components for rendering all supported field editors with the same structure and style as in Contentful web app.

Example

import 'codemirror/lib/codemirror.css';
import '@contentful/forma-36-react-components/dist/styles.css';
import '@contentful/field-editor-date/styles/styles.css';
import { Field, FieldWrapper } from 'packages/default-field-editors';

const fieldEditor = (
  <FieldWrapper sdk={fieldExtensionSdk} name={fieldName}>
    <Field sdk={fieldExtensionSdk} widgetId="singleLine" />
  </FieldWrapper>
);

It is optional to specify widgetId, and when not specified we'll try to determine a default editor type to render based on the field configuration.

Otherwise, you can set it to one of many available editor types: singleLine for a single line text editor, checkbox for a checkbox input, etc.

You can see the full list of supported widgets in the WidgetType type definition.

FAQs

Package last updated on 29 Mar 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc