Pre-PMTools
This commit is contained in:
24
src/keystatic/blocks/general/element.ts
Normal file
24
src/keystatic/blocks/general/element.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { fields } from '@keystatic/core'
|
||||
import { inline } from '@keystatic/core/content-components'
|
||||
|
||||
import { flameIcon } from '@keystar/ui/icon/icons/flameIcon'
|
||||
|
||||
import { ELEMENT_STYLES, ELEMENTS } from '@/lib/constants/elements'
|
||||
|
||||
export const element = inline({
|
||||
label: 'Element',
|
||||
description: 'An elemental glyph, set in Unigrim Dee',
|
||||
icon: flameIcon,
|
||||
schema: {
|
||||
name: fields.select({
|
||||
label: 'Element',
|
||||
options: ELEMENTS,
|
||||
defaultValue: 'earth',
|
||||
}),
|
||||
style: fields.select({
|
||||
label: 'Style',
|
||||
options: ELEMENT_STYLES,
|
||||
defaultValue: 'filled',
|
||||
}),
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user