You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

salad-ui

Package Overview
Dependencies
Maintainers
1
Versions
268
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

salad-ui

Reusable React UI Components Toolkit

0.0.38
Source
npm
Version published
Weekly downloads
90
60.71%
Maintainers
1
Weekly downloads
 
Created
Source

SaladUI

SaladUI provides a collection of simple React Components to build Universal apps.

Usage

import Salad from 'salad-ui'
render(){
   return <Salad.Form.Autocomplete/>
}

// Or

import { Autocomplete } from 'salad-ui.form'
render(){
   return <Autocomplete/>
}

Contents

The kit includes:

  • Lib: a few utilies functions including childrenWithProps, currencyToSymbol, f (fetch wrapper), glob (window or global, with some tools), numberToString, polyfill, sso.
  • Util: a collection of simple components such as Alert, TagList, Button, TextClamp.
  • Form: simple elements wrapped with basic styling and customizable via props - Input, Radio, Checkbox.
  • Icon: Icons in svg format (compiled by React)
  • Stylesheet: a simple way to maintain js stylesheets
  • Chart: Area, CirclePie and BarMetric

Stylesheet

// styles.js
import Stylesheet, { defaults } from 'salad-ui.stylesheet'

export default Stylesheet.create({
  container: {
    borderRadius: 5,
    margin: defaults.padding.md,
  }
})

// component.js
import styles from './styles'
render(){
  <div style={styles.container}></div>
}


// Output:
<div style="-webkit-border-radius: 5px; border-radius: 5px [...]"></div>

Keywords

react

FAQs

Package last updated on 23 May 2016

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