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

How to show subtitle in documents pane list #27

Open
liegeandlief opened this issue Jan 11, 2023 · 1 comment
Open

How to show subtitle in documents pane list #27

liegeandlief opened this issue Jan 11, 2023 · 1 comment
Labels

Comments

@liegeandlief
Copy link

In the image preview in the README file there is a subtitle for each item in the documents list. How would I go about adding this? I can only get the main heading to show for each item. I would like to show the schema type for each item as a subtitle. Thanks!

@snorrees
Copy link
Contributor

snorrees commented Feb 8, 2023

Hey, the pane is using the default document preview component.
To customize the subtitle, you will have to provide preview config in the schema, just like you would for document lists and arrays in the studio.

https://www.sanity.io/docs/previews-list-views#770fd57a8f95

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

No branches or pull requests

2 participants