sanity-plugin-custom-string

0.1.6 • Public • Published

sanity-plugin-custom-string

A custom input component to show max length validation in a UI for editors

Installation

sanity install custom-string

Usage

After it's installed, you can use the custom input to replace any input of type string. It requires a validation rule to set the max limit for the input.

export default {
  name: 'aDocument',
  title: 'A Document',
  type: 'document',
  fields: [
    {
      name: 'title',
      title: 'Title',
      type: 'customString', // Uses the custom input
    }
  ]
}

License

MIT © Bryan Robinson See LICENSE

Readme

Keywords

Package Sidebar

Install

npm i sanity-plugin-custom-string

Weekly Downloads

1

Version

0.1.6

License

MIT

Unpacked Size

16.2 kB

Total Files

12

Last publish

Collaborators

  • bryanlrobinson