Skip to content

Groups of fields in a Singleton #339

Answered by JedWatson
NeeshSamsi asked this question in Q&A
Discussion options

You must be logged in to vote

We're designing a solution for this at the moment.

@NeeshSamsi @hauptrolle would love some feedback if you have any thoughts, whether this will match what you're looking for:

Plan is to do something (syntax very draft) that lets you specify a group with a label and (optional) description, surrounding fields in the schema, like:

fields: {
  title: fields.text(),
  ...group({
    label: 'SEO',
    description: '...',
    fields: {
      description: fields.text(),
      // ...
    },
  },
}

And two mockups we're playing with:


We're currently leaning towards just using whitespace, and trying to keep it really clean, not overwhelm the form with lines. But let us know what you think!

(also …

Replies: 6 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@MrMacStripe
Comment options

@JedWatson
Comment options

@MrMacStripe
Comment options

Answer selected by NeeshSamsi
Comment options

You must be logged in to vote
1 reply
@simonswiss
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
roadmap Something we're planning to solve
6 participants