@webframer/ui
v0.14.0
Published
Headless UI Components Library
Downloads
7
Maintainers
Readme
Headless UI Components Library
This package contains commonly used user interface components (written in React by default).
All UI components are headless (i.e. no default CSS styling). For integrated UI themes and styles, check the style guide, or provide your own.
Why Should You Use this Library?
All Webframe UI components:
- are headless, which means you can style everything from a clean-slate
- follow Open UI standards regarding accessibility for WCAG 2 at Level AAA
- are modular and composable for integration with low/no code platforms
- have small bundle size with near-zero third party dependencies
- are optimised for high performance to easily render 10K+ items
- have smart defaults for minimum configuration
- are very flexible with fully customisable behaviors (see below).
Custom behavior (beyond props configuration) is possible because every component has a self
instance.
This self
instance exposes public methods for manipulating its internal component states.
Requirement
- ES6 compatible project, or must set this package to be transpiled.
Installation
npm i @webframer/ui react react-dom
Usage
import { Scroll } from '@webframer/ui'
// Do not use this demo.css in production!
// @see https://webframe.app/docs/ui#getting-started
import '@webframer/ui/demo.css'
//... later in the code
return (
<Scroll className='my-component'>
{/* ...your code here */}
</Scroll>
)
Documentation
Go to Webframe UI Docs for complete API documentation, including instructions on how to setup default UI Theme or custom styling with Tailwind CSS.