Skip to main content
100%

Sanity Schema for Wordle

✓ Published0🌍 Public
Aachanda101
Last edited Feb 10, 2022
Created on Feb 11, 2022

A Wordle document editor in Sanity renders the player's guesses as color-coded letter tiles, mirroring the game’s feedback system: green for correct position, yellow for included but misplaced, and gray otherwise. The `withDocument` higher-order component wraps the answer field, using Sanity UI’s `Card`, `Flex`, and `Text` to draw the grid from the document’s `guesses` array. Custom validation blocks publishing until the answer is guessed, while the preview shows the date and guess count. React and date-fns format the title.

AI-generated description

Similar vizzes