npm

Share private packages across your team with npm Orgs, now with simplified billing via the aws marketplace!Learn more »

netlify-cms-widget-inline-select

1.3.3 • Public • Published

netlify-cms-widget-inline-select

Check out the demo!

Inline radio + multi-checkboxes select widget.

npm version Build Status module formats: cjs License: MIT

semantic-release code style: prettier

preview

This widget was inspired by original netlify-cms-widget-select.

Install

As an npm package:

npm install --save netlify-cms-widget-inline-select
import { InlineSelectControl, InlineSelectPreview } from 'netlify-cms-widget-inline-select';
 
CMS.registerWidget('inline-select', InlineSelectControl, InlineSelectPreview);

How to use

Add to your Netlify CMS configuration:

fields:
  name: radio_select
    label: Radio select
    widget: inline-select
    options: ['left', 'center', 'right']

Configuration

You can customize the preview of the url with these options:

  • options - you can also specify the value and label in options option
fields:
  name: radio_select
    label: Most recent framework
    widget: inline-select
    options:
      { value: react, label: React }
      { value: angular, label: Angular 1.x }
      { value: vue, label: Vue.js }
      { value: $, label: jQuery }
  • multiple - add ability to select multiple items
fields:
  name: checkboxes_select
    label: Favorite frameworks
    widget: inline-select
    multiple: true
    options: ['React', 'Angular', 'Vue', 'Other']

License

MIT

Support

For help with this widget, open an issue or ask the Netlify CMS community in Gitter.

install

npm i netlify-cms-widget-inline-select

Downloadsweekly downloads

108

version

1.3.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability