Skip to content

feat: add MasonryGrid component for flexible column layouts #7

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

Merged
merged 3 commits into from
Aug 11, 2025

Conversation

hitomihiumi
Copy link
Contributor

A better version of a past component.

Usage:

          <MasonryGrid
              columnWidth="160"
              gap="16"
              fill
          >
              {...[16, 12, 4, 6, 16, 12, 8, 24, 4, 12, 6, 2].map((height, index) => (
                  <Flex
                      key={index}
                      background="overlay"
                      radius="l"
                      border="neutral-alpha-medium"
                      fill
                      height={height}
                  />
              ))}
          </MasonryGrid>
image

@hitomihiumi
Copy link
Contributor Author

@lorant-one

@lorant-one
Copy link
Member

getting there slowly, thanks for the patience!

@lorant-one lorant-one merged commit 125489a into once-ui-system:main Aug 11, 2025
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

Successfully merging this pull request may close these issues.

2 participants