sanity-plugin-position-input

1.0.4 • Public • Published

sanity-position-input

Position input for Sanity that stores selected position.

Usage

Use it in your schema types:

// [...]
{
  fields: [
    // [...]
    {
      name: 'position',
      title: 'Poistion',
      type: 'position',
      options: {
        choices: ['left', 'center', 'right', 'full', 'drop-left', 'drop-right']
      }
    }
  ]
}

Note that the above only works if you import and use the all:part:@sanity/base/schema-type part in your schema.

License

MIT-licensed. See LICENSE.

/sanity-plugin-position-input/

    Package Sidebar

    Install

    npm i sanity-plugin-position-input

    Weekly Downloads

    7

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    19.4 kB

    Total Files

    11

    Last publish

    Collaborators

    • edolyne