gluestack-ui v1.0 is here with themed and unstyled components
gluestack-ui v1.0 has been released, described by its creators at GeekyAnts as "Universal & Accessible UI Components for React Native & Web, Unstyled & Themed!"
Themed and unstyled components
The library ships ready-to-use themed components that follow a specific theme or design language and work on web, iOS and Android. For teams with their own design system, unstyled primitive components are also available to be modified and styled from scratch. The themed library is treeshakeable, so only the components an app uses are included.
Components are designed with accessibility in mind, covering keyboard interaction, gestures, screen readers and color contrast.
gluestack-style
Styling is handled by gluestack-style, a universal styling library. Listed features include:
- MediaQuery support for breakpoint-based styles
- Variants
- Utility & SX props
- Theme & token support
- Zero JavaScript with SSR
The component library also uses a babel-plugin to reduce runtime. The project publishes benchmarks against other libraries and says faster speeds are expected in upcoming releases.
Tooling and design resources
- VS Code Extension: inserts component code via snippets that begin with
gs-followed by the component name, plus additional recipes, automatic imports and dynamic hooks and variables. - Figma UI Kit: a component library in Figma that mirrors the codebase, with code changes reflected in the Figma library.
- Head Starter kit: free template screens that are responsive, support dark mode and are tested for keyboard operability and screen reader support.
Getting started
Installation is a single command:
npm create gluestack@v1
A manual installation path is also available, along with a Migration Guide for projects moving from NativeBase.
The team says more is coming on the road beyond v1.0.
Links
Source: v1.gluestack.io