Files
website/src/keystatic/blocks/general/element.ts
2026-10-16 19:15:33 +02:00

25 lines
611 B
TypeScript

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',
}),
},
})