feat: create-menu block (morphing grid menu)#74
Merged
Conversation
A 'Create new' button that expands into a grid menu with shared-layout morph, clip-path reveal and a bouncy folder-style spring; items stagger in. Esc and outside-click close, reduced-motion safe. beUI styling and labels.
Grow the morph from a fixed center in every direction by centering both states in a fixed-size box (place-items-center only centers an item that fits its cell) and popping the exiting trigger out of grid flow. Draw the grid with static hairline borders instead of an animated fill so rows don't flicker as they stagger in, and give the label and panel content their own layout so they stay crisp instead of stretching with the box.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A CTA button that expands into a grid menu — shared-layout morph + clip-path reveal, bouncy folder-style spring.
What
CreateMenu(blocks): a "Create new" button that morphs open into a 3×2 grid (Project, Notebook, Notes, Goal, Milestone, Event) via a sharedlayoutId, with a clip-path reveal and staggered items.Tests
Added to the axe a11y suite.
bun run checkclean,bun test18/18. Rendered the open state to confirm layout.