@persistenceone/persistence-ui-components
v0.0.4
Published
A React component library built with TailwindCSS and TypeScript.
Downloads
11
Readme
persistence-ui-components
UI Components and utility library for pSTAKE App.
npm
npm i @persistenceone/persistence-ui-components
Available Components
import {
Button,
ButtonLink, // to redirct from button
Dropdown,
Input,
Modal,
Switch,
Tabs,
Spinner,
Radio
} from "@persistenceone/persistence-ui-components";
Available Hooks
import {
useLocalStorage,
useWindowSize,
useOnClickOutside,
useOnlineStatus,
useSortableTable
} from "@persistenceone/persistence-ui-components";
Available helper functions
import {
formatNumber,
stringTruncate,
truncateToFixedDecimalPlaces,
numberFormat,
getTokenImgFromDenom,
minifiyTxnHash,
getActiveSideBarItem,
getChainSpecificAssets,
getPercentChange
} from "@persistenceone/persistence-ui-components";
TailwindCSS Config
module.exports = {
content: [
...
"./node_modules/@persistenceone/persistence-ui-components/**/*.{js,ts,jsx,tsx,mdx}",
],
}