Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMS: Create custom string selector for block theme #1

Open
regisphilibert opened this issue Jul 10, 2023 · 0 comments
Open

CMS: Create custom string selector for block theme #1

regisphilibert opened this issue Jul 10, 2023 · 0 comments

Comments

@regisphilibert
Copy link
Member

regisphilibert commented Jul 10, 2023

I'd really like to use this tutorial to give editors a better experience when chosing style impacting options.

https://www.sanity.io/guides/create-a-rich-string-selector-field-input

I know we have a solution based on the color set, but this does not give a detailed idea of the upcoming styling (except for one of the used color) and requires to use said color as the value saved.

With the custom component solution we could:

  1. present a button styled as a minimal representation of the block itself, which could preview the colors of the title, copy text border etc...
  2. Finally train ourselves on custom input component with which we could bring our editors experience to the next level.

Capture d’écran, le 2023-07-10 à 13 25 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant