gluestack-ui v2 released with NativeWind-based copy-paste components
updated
gluestack-ui v2 has been released. The new version offers copy-paste components and patterns built with Tailwind CSS through NativeWind, and is designed around universal compatibility so code is written once and runs across platforms. Dark mode is supported throughout.
What's new
- Modular architecture: developers pick and integrate only the components they need, which the team says reduces bundle size and removes unused code.
- NativeWind integration: NativeWind is the styling engine, giving support for Tailwind CSS classes and consistent styling across platforms such as Expo and Next.js.
- Component redesign: components including buttons, forms, navigation elements and data displays have been visually refined.
- React Server Components (RSC) compatibility: UI elements can be rendered on the server to cut client-side JavaScript execution and improve initial load times.
- CLI tool: a command-line tool initializes projects, installs dependencies and configures settings. A migration guide is available for v1 users.
- Non-bundled library: required components are copied directly into a project rather than installed as a bundled dependency.
- No default primary color: the default primary color is now gray for a neutral look, and can be configured to match a project's branding.
- VS Code extension: provides component snippets, quick documentation references and styling suggestions in the editor.
- Figma UI Kit: includes pre-designed components, layouts and styles aligned with the library.
- Starter Kits: pre-configured templates for web and mobile apps with sample code.
- Accessibility: components target keyboard interaction, gestures, screen readers and appropriate color contrast.
The components can also be used as a base for building custom design systems or component libraries. The team states that more is coming for gluestack-ui beyond v2.
Links
Source: gluestack.io