0.1.12 • Published 5 years ago

samurai-ui v0.1.12

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Samurai UI

  • highly opinionated UI Component library using React and Styled Components
  • uses @react-aria and @react-stately under the hood
  • it only focuses on styling and DX

This project is WIP.

Components to Build

  • Button
  • Container
  • Flex
  • Grid
  • Card
  • List
  • ComboBox (Picker)
  • DatePicker
  • Icons
  • Input (text, textarea, radio, switch, checkbox)
  • Progress
  • Slider
  • Tabs
  • Table
  • React Native Support

Get Started

npm install samurai-ui

//or

yarn add samurai-ui

You need to set ThemeProvider to use UI components.

import React from 'react'
import { ThemeProvider, Theme, lightTheme, darkTheme } from 'samurai-ui'

function App({ children }) {
  const [lightMode, setLightMode] = React.useState<boolean>(true)
  const toggleTheme = () => setLightMode(!lightMode)

  return (
    <ThemeProvider theme={lightMode ? lightTheme : darkTheme}>
      {children}
    </ThemeProvider>
  )
}

Documentation

WIP

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago