0.1.12 • Published 5 years ago
samurai-ui v0.1.12
Samurai UI
- highly opinionated UI Component library using
ReactandStyled Components - uses
@react-ariaand@react-statelyunder the hood - it only focuses on styling and DX
This project is WIP.
Components to Build
ButtonContainerFlexGridCardListComboBox(Picker)DatePickerIconsInput(text, textarea, radio, switch, checkbox)ProgressSliderTabsTableReact Native Support
Get Started
npm install samurai-ui
//or
yarn add samurai-uiYou 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