@ankjs/react-ui
v1.0.41
Published
A simple React UI Library
Maintainers
Readme
@ankjs/react-ui
📜 Introduction
🖥️ Installation
npm install @ankjs/react-ui
or
yarn add @ankjs/react-ui[!NOTE] If you want to use all the features of the theme or apply it automatically All components, do this
Create Colors Object
📜 currently available on colors object
primary,
primaryDeep,
primaryColor,
pageBg,
mainBgColor,
backgroundColor,
secondryBgColor,
color',
buttonBgActive,
buttonColorActive,
buttonBgDeactivate,
buttonColorDeactivate,
inputColorActive,
inputColorDeactivate,
inputBgActive,
inputBgDeactivate,create a folder in 📂
srcfolder$ mkdir constants📂
constantsin create object like thisexport const colors = { light : { primary : '# won color ' // brand color backgroundColor : '# won color', // base background color pageBg : '# won color ' // for all page PageView components color : '# won color', // text color }, dark:{ // property same but value change // important never use same value }, system:{ // property same but value change // important never use same value } }
🔌 Theme Provider
// App.js
// React context like use
import { AnkThemeProvider } from '@ankjs/react-ui';
// if use won colors object
// import { colors } from './constants/colors.js';
const App = ()=>{
return (
<AnkThemeProvider
// colorsObject={colors} if use
>
...
</AnkThemeProvider>
)
}••• Click to See More details >>>
🪟 Components
🪝 Hooks
🌈 Contexts
🎡 Core functions
1 getRandomUserId, 2. getRandomId, 3. getNumInRange, 4. getRandomText, 5. getRamdomKey 6. emailHideWithSymbol, 7. emailHide, 8. arrayToOneString 9. arrayFindBoolean 10. capatilcapitizeFirstLetter
🔗 Links
PLEASE HELP TO IMPROVE !!
THANKS FOR WATCHING 🙏
|||||||||||||||||||_ ||||____|_____||||||||||
||||| ____ ___ / /__ /__ /, __ / ||||||||
||| / __ `/ __ \/ //_/ / /\_ \ ||||||||||
||| / /_/ / / / / ,< ___/ /___/ / ||||||||||
||| \__,_/_/ /_/_/|_|/____/\__,_/ ||||||||||
|||||||||||||||||||||||||||||||||||||||||||||
