lil ui
A set of very basic components for React projects.
Designed to be used out of the box or in DIY UI fashion with TailwindCSS or Styled components.
Installation
yarn add lil-ui
npm install lil-ui
Components
Modal
Prop | Default value | Options |
---|---|---|
show
|
false
|
|
children
|
Modal content can be passed as children
|
|
titleComponent
|
Custom component for modal heading
|
|
backdropComponent
|
Custom component for modal backdrop
|
|
title
|
Modal title
|
|
onClose
|
Function to run when modal closes
|
Pane
Prop | Default value | Options |
---|---|---|
show
|
false
|
|
children
|
Modal content can be passed as children
|
|
titleComponent
|
Custom component for modal heading
|
|
backdropComponent
|
Custom component for modal backdrop
|
|
title
|
Modal title
|
|
onClose
|
Function to run when modal closes
|
|
position
|
right |
left to open the pane from leftright or leave empty to open the pane from right |