import {styled} from 'styled-components' const CustomBox = styled.div` animation: 3s linear 0s infinite normal none spin; background: white; border: 1px solid black; cursor: pointer; height: 40px; width: 40px; &:hover { background: red; } @keyframes spin { from { transform: rotate(0); } to { transform: rotate(180deg); } } ` export default { fields: [ { description: Title description, name: 'title', title: Title, type: 'string', }, { description: (
Image description 📷
), name: 'image', title: Image 🖼️, type: 'image', }, { description: ( Subtitle description x ← x - (JᵀJ + λIₙ༝ₙ)⁻¹ Jᵀr ), name: 'subtitle', title: (

Subtitle (h1)

Subtitle (h2)

Subtitle (h3)

), type: 'string', }, ], name: 'fieldComponentsTest', preview: { prepare({media, title}: any) { return { media, subtitle: 'example subtitle', title: title, } }, select: { media: 'image', title: 'title', }, }, title: 'Fields with React components', type: 'document', }