sanity-plugin-note-field
Version:
Display inline notes within your schemas
26 lines (21 loc) • 525 B
text/typescript
import React from 'react'
import { ObjectSchemaType, ObjectInputProps } from 'sanity'
export type ThemeColorToneKey =
| 'default'
| 'transparent'
| 'primary'
| 'positive'
| 'caution'
| 'critical'
export type noteSchemaType = Omit<ObjectSchemaType, 'options'> & {
options?: {
icon?: React.ReactNode
headline?: string
message: any
tone?: ThemeColorToneKey
}
}
export interface noteInputValue {
_type?: 'note'
}
export type noteInputProps = ObjectInputProps<noteInputValue, noteSchemaType>