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

Make Group an interface #59

Open
wesen opened this issue Dec 14, 2023 · 1 comment
Open

Make Group an interface #59

wesen opened this issue Dec 14, 2023 · 1 comment

Comments

@wesen
Copy link

wesen commented Dec 14, 2023

I want to experiment with different Group layouts (for example as rows, as many of my forms are short fields, but many fields). Currently, I can't really do too much because I have to use the Group struct. I would like to play with the group titles and such as well.

Turning Group into an interface would make it fairly easy to experiment more (like with Field). This would also allow pulling in thirdparty huh-improvements easier.

I'm happy to do the necessary work, but wanted to check in before opening a pull request.

@maaslalani
Copy link
Member

We'd be open to supporting different layouts such as horizontal layouts. We can likely introduce an option on a Group called WithLayout which perhaps can take LayoutHorizontal and LayoutVertical and displays the view accordingly.

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

2 participants