sanity-plugin-note-field
Version:
Display inline notes within your schemas
20 lines (15 loc) • 411 B
text/typescript
import React from 'react'
import type { StringInputProps, StringSchemaType } from 'sanity'
export type ThemeColorToneKey =
| 'default'
| 'transparent'
| 'primary'
| 'positive'
| 'caution'
| 'critical'
export type NoteOptions = {
icon?: React.ElementType
tone?: ThemeColorToneKey
}
export type noteSchemaType = StringSchemaType
export type noteInputProps = StringInputProps<StringSchemaType>