1.0.1 • Published 1 year ago

sanity-plugin-daterange-input v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

sanity-plugin-daterange-input

This is a Sanity Studio v3 plugin.

Installation

npm install --save sanity-plugin-daterange-input

Usage

Add it as a plugin in sanity.config.ts (or .js):

 import {defineConfig} from 'sanity'
 import {dateRangePlugin} from 'sanity-plugin-daterange-input'

 export const defineConfig({
     //...
     plugins: [
         dateRangePlugin({})
     ]
 })

Then in your schemas, use it as a field

{
    name: "period",
    type: "dateRange"
}

License

MIT © Sanity.io

Develop & test

This plugin uses @sanity/plugin-kit with default configuration for build & watch scripts.

See Testing a plugin in Sanity Studio on how to run this plugin with hotreload in the studio.

Release new version

Run "CI & Release" workflow. Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.