Demonstrates HStack arranging items horizontally with different gaps and alignments.
Demonstrates HStack arranging items horizontally with different gaps and alignments.
Items arranged in a horizontal row with a consistent gap and centered vertical alignment. Use HStack whenever siblings should sit side by side.
Astryx showcase: Layout.
A card layout with header, scrollable content area, and footer with action buttons.
A minimal layout with just a content area inside a card, without header or footer.
A layout using contentWidth to constrain and center content while keeping dividers full-bleed.
A file browser style layout with start panel for folders, main content for files, and end panel for details.
A layout where content extends edge-to-edge with zero padding, ideal for tables or images.
LayoutContent is the scrollable main content area within a Layout, providing automatic padding and scroll containment between the header and footer.
LayoutPanel is a sidebar slot within a Layout, used for navigation, detail views, or secondary content alongside the main content area.
A scrollable main content area below a fixed header. Use LayoutContent inside Layout to get automatic padding and scroll containment for the primary content.
A plan picker with single-select radio behavior. Cards show an accent border when selected.
Raised selectable cards with `elevation="low"`. The inset selection ring composes on top of the shadow, so a selected card keeps its elevation.
Multi-select tag picker using color variant selectable cards with color-matched selection borders.
Buttons positioned at the start, center, and end of a row.
Badges arranged horizontally and vertically in side-by-side cards.
An avatar, text, and button in a row; the text stretches to fill the available space.
StackItem can be used within HStack or VStack for more granular control over individual item sizing and alignment, but is optional; stack children work without it.
A static-width item next to one that fills the remaining space. Wrap stack children in StackItem when an item needs explicit sizing control.
A playing card that follows a drag: a gentle release springs it back on its release velocity, and a quick flick throws it away with momentum before the next card is dealt. A Discard button moves it off from the keyboard, fading it in place under Reduce Motion, and the discard is announced. Built only on the public useAnimator hook.
Custom mobile navigation trigger built with useAppShellMobile. The trigger consumes the surrounding AppShell context instead of rendering its own shell.
A project card that useClickableContainer makes clickable anywhere: a click on the card follows its title link, while the Star button, the owner link and a text selection keep their own behavior, and Ctrl/Cmd+click or middle-click opens the project in a new tab.
Custom disclosure UI built directly with useCollapsible for headless open/close state.
A playing card that a sideways drag moves between three places: a slow release settles on the nearest, a quick flick carries to the next, and a release moving back returns where it started. Buttons settle it from the keyboard, and the new place is announced. Built only on the public useDragToSnapPoints hook.
Showing 25–48 of 55