Skip to content

An open-source library that focuses on the developer experience, offering complete control over style and customization in their projects.

Notifications You must be signed in to change notification settings

openkitrun/design-blocks

Repository files navigation

design-blocks

Build your mobile applications React Native with blocks

An open source library with tools for creating dynamic user interfaces for applications written in React Native, focused on the developer experience.

You can use these components as the base layer of your design system or adopt them incrementally.

sponsor: Brian Curliss

Packages

Future Packages (In Planning)

  • [🔥 @design-blocks/primitives] - Layout components (Box, Stack, Text)

Documentation

For detailed information and usage instructions, visit our official documentation. (Work in Progress)

📚 Current Package

@design-blocks/unstyled

This package provides essential UI components without style opinions:

  • Form Controls: Button, Checkbox, RadioGroup, Switch
  • Full Accessibility: Screen reader support, keyboard navigation, ARIA attributes
  • Composable API: Inspired by Radix UI's compound component pattern
  • TypeScript: Complete type safety and excellent IntelliSense
  • Tree-shakeable: Import only the components you use
import { Button, Checkbox, RadioGroup, Switch } from '@design-blocks/unstyled';

🚀 Quick Start

npm install @design-blocks/unstyled@beta
import { Button, Checkbox, RadioGroup } from '@design-blocks/unstyled';

// Button with loading state
<Button.Root loading={loading} onPress={handlePress} style={styles.button}>
  <Button.Label>Submit</Button.Label>
  <Button.Loading />
</Button.Root>

// Checkbox
<Checkbox.Root checked={accepted} onCheckedChange={setAccepted}>
  <Checkbox.Indicator />
</Checkbox.Root>

// RadioGroup
<RadioGroup.Root value={plan} onValueChange={setPlan}>
  <RadioGroup.Radio value="basic">
    <RadioGroup.Input><RadioGroup.Indicator /></RadioGroup.Input>
    <RadioGroup.Label>Basic Plan</RadioGroup.Label>
  </RadioGroup.Radio>
</RadioGroup.Root>

Contributing

Please follow our contributing guidelines.

Authors

Estrella en GitHub • Construido con ❤️ para React Native

About

An open-source library that focuses on the developer experience, offering complete control over style and customization in their projects.

Topics

Resources

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •