Socket
Book a DemoInstallSign in
Socket

rebass-native

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rebass-native

Flexible & functional React native design system, built with styled-system

latest
Source
npmnpm
Version
2.2.1
Version published
Weekly downloads
7
75%
Maintainers
1
Weekly downloads
 
Created
Source

Rebass-native

Port of Rebass for react-native, a UI component library & design system, built with styled-system, with support for styled-components.

Build Status Coverage Downloads Version

npm i rebass-native

See Demo

Rebass-native is a port of Rebass, a library of highly-composable, primitive UI components for React, built with styled-components to keep styles isolated and reduce the need to write custom Styles in your application. Based upon a configurable design system, Rebass‘s props API makes building consistent, responsive web apps simpler and faster.

Getting Started

import React from 'react'
import { Provider, Heading, Button } from 'rebass-native'

const App = props => (
  <Provider>
    <Heading>Hello</Heading>
    <Button>Rebass</Button>
  </Provider>
)

Features

  • Kickstart your own react-native component library
  • Responsive style props from styled-system
  • Flexbox grid with native-grid-styled
  • Support for styled-components
  • Functional stateless UI components
  • Configurable theming
  • Extensible base components
  • Design-system based consistency
  • Built for responsive web design

Documentation

CodeSandbox

Try it out:

https://snack.expo.io/@git/github.com/hermanya/rebass-native:examples/app

Architectural Approach

Rebass is built around a component architectural approach inspired by Dan Abramov’s Presentational and Container Components, where presentational components are the only ones that encapsulate styles and contain no application logic, and container components do not contain any styles or DOM markup and handle all the application logic.

Rebass only contains presentational components, which means controlling things like progressive disclosure mechanisms or dropdown menus should be handled at a higher level in container components. Therefore, Rebass itself does not require any client-side JavaScript, is well suited to server-side rendering, and can fit into virtually any higher level application architecture.

See Patterns for Style Composition in React for more on some of the thought behind Rebass.

Contributing | MIT License

Keywords

components

FAQs

Package last updated on 30 Aug 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts