### Stack Component Installation Source: https://github.com/nkzw-tech/stack/blob/main/README.md Shows the command to install the `@nkzw/stack` package using npm. This is the standard method for adding the library to a project. ```bash npm install @nkzw/stack ``` -------------------------------- ### Stack Card Layout Example Source: https://github.com/nkzw-tech/stack/blob/main/README.md An example demonstrating the use of Stack for creating a card layout with vertical arrangement, gaps, padding, borders, and nested content. ```tsx

Card Title

Card content goes here

``` -------------------------------- ### React Native Stack Component Examples Source: https://context7.com/nkzw-tech/stack/llms.txt Illustrates the usage of the Stack component for creating vertical lists, profile card layouts, and styled components with NativeWind. It requires React Native and optionally NativeWind for styled examples. The component facilitates flexible layout management with properties like 'vertical', 'gap', 'padding', and 'alignCenter'. ```tsx import Stack from '@nkzw/stack'; import { Text, Image, TouchableOpacity } from 'react-native'; // Basic vertical list const UserList = () => ( Alice Bob Charlie ); // Profile card layout const ProfileCard = ({ user }) => ( {user.name} {user.email} Message Follow ); // NativeWind support (when installed) const StyledCard = () => ( Title Description ); ``` -------------------------------- ### Stack Content Alignment Source: https://github.com/nkzw-tech/stack/blob/main/README.md Align the content within the stack container. Supports 'center' and 'start'. ```tsx
Content
Content
``` -------------------------------- ### Stack Component Usage: Vertical and Horizontal Layouts with Gap Source: https://github.com/nkzw-tech/stack/blob/main/README.md Provides examples of using the Stack component for both horizontal (default) and vertical layouts. It demonstrates how to apply a gap between child elements using the `gap` prop, including using a boolean `gap` for default spacing. ```tsx import Stack from '@nkzw/stack'; // Horizontal layout (default).
Apple
Banana
Kiwi
// Vertical layout.
Apple
Banana
Kiwi
// Using boolean gap (uses default gap of 8px).
Apple
Banana
``` -------------------------------- ### Stack Alignment (Cross Axis) Source: https://github.com/nkzw-tech/stack/blob/main/README.md Align items along the cross axis. Options include centering, aligning to the start, end, or baseline. ```tsx // Center align items.
Centered
// Align to start.
At start
// Align to end.
At end
// Baseline alignment.
Small
Large
``` -------------------------------- ### VStack Component: Vertical Layout Shorthand (React) Source: https://context7.com/nkzw-tech/stack/llms.txt Illustrates the use of the VStack component, a convenient shorthand for creating vertical stacks. This example demonstrates building a form with nested VStacks to manage layout and spacing for labels, inputs, and a submit button. ```tsx import { VStack } from '@nkzw/stack'; // VStack is equivalent to const Form = () => (