Repository navigation
feat(cli): blocks, numbered presets like ShellUI's dashboard-01 - #36
Merged
Merged
Conversation
added 2 commits
October 16, 2026 16:30
Blocks are ready-made screens built from components. `add bottom-nav-01` writes one file the user owns to Components/Blocks (namespace <App>.Components.Blocks, next to Components/UI or Components/Native) and installs the components it uses. - bottom-nav-01: app shell, tab bar with a raised Pay button and an avatar tab (wallet app) - bottom-nav-02: Material 3 tab bar - bottom-nav-03: floating tab bar that hides on scroll, active label only - bottom-nav-04: compact capsule, the active tab widens with its label - bottom-nav-05: the active tab rises into a circle; hides on scroll - edge-menu-01: a page with a solid tool dock on its right edge The bottom-nav blocks expose Pages (one view per tab Value), Nav and Show(value); 01 adds ActionClicked; edge-menu-01 exposes Page, Menu and ToolPicked. Code-built views (no XAML), MAUI and Avalonia. - ComponentCategory.Block; block templates install to ../Blocks/<Name>.cs - sync-templates.py reads Components/Blocks in both demos - Both demos show every block in a phone frame - BlockTests (registry, install path, namespaces with Components/UI and Components/Native); the headless smoke test renders the blocks - Docs: COMPONENTS.md "Blocks", CLI README, roadmap
A docs preview can show a block with xmlns:blocks="using:AvaloniaDemo.Components.Blocks".
Shewart
marked this pull request as ready for review
October 16, 2026 17:35
8 tasks done
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.
Description
Blocks: numbered presets built from components, like ShellUI's
dashboard-01.Stacked on the edge-menu PR (base
feat/edge-menu); this PR adds two commits.shellui-native add bottom-nav-01writes one file toComponents/Blocks/BottomNav01.cs(namespace<App>.Components.Blocks, next toComponents/UIorComponents/Native) and installs the components it uses.listshows blocks in a newBlockcategory.bottom-nav-01: app shell with a raised Pay button and an avatar tab.bottom-nav-02: Material 3 tab bar.bottom-nav-03: floating tab bar that hides on scroll; only the active tab is labelled.bottom-nav-04: compact capsule; the active tab widens with its label.bottom-nav-05: the active tab rises into a circle; the bar hides on scroll.edge-menu-01: a page with a solid tool dock on its right edge.Pages(one view per tabValue),NavandShow(value); 01 addsActionClicked.edge-menu-01exposesPage,MenuandToolPicked.scripts/sync-templates.pyreadsComponents/Blocksin both demos; block templates install to../Blocks/<Name>.cs.examples/Avalonia.Preview) compiles the blocks, so docs previews can use them.docs/COMPONENTS.md"Blocks", CLI README, roadmap.Type of Change
Checklist
Testing Done
BlockTests: registry, install path, namespaces withComponents/UIandComponents/Native) and 174 headless tests (smoke renders of every block) pass; format clean.add bottom-nav-01 bottom-nav-03 bottom-nav-05 edge-menu-01in a fresh Avalonia app and a freshdotnet new mauiapp: four files inComponents/Blocks, their components inComponents/UI, both build 0/0 (MAUI on Windows and Android);listshows the blocks.