Skip to content

Commit aa1904c

Browse files
committed
Add hero image alt text AI support
1 parent f6d5902 commit aa1904c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

studio/schemaTypes/objects/heroImage.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ export default defineType({
66
title: 'Image',
77
options: {
88
hotspot: true,
9+
aiAssist: {
10+
imageDescriptionField: 'alt',
11+
},
912
},
1013
fields: [
1114
defineField({
@@ -15,10 +18,11 @@ export default defineType({
1518
}),
1619
defineField({
1720
name: 'alt',
18-
type: 'string',
21+
type: 'text',
1922
title: 'Alternative text',
2023
description:
2124
'Alternative (Alt) Text communicates the meaning of a non-decorative image relative to its document context. Leave blank for decorative images.',
25+
rows: 2,
2226
}),
2327
],
2428
preview: {

0 commit comments

Comments
 (0)