Structured Content 2022: Join our conference to explore fresh perspectives on content and digital experiences →

Position input

Position input that stores the selected position.


Position input for Sanity that stores selected position.


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.


MIT-licensed. See LICENSE.

Install command

sanity install position-input

Categorized in