Perdil UI Kit is a React Native UI Library that allows you to create stunning multi-brand cross-platform mobile applications. The library brings consistency and scalability in the design and development process.
- 20+ general-purpose components designed and tested to save your time.
- Comprehensive clear documentation with tons of examples.
- Construct an interface using basic components ,specifications and it will always have a stunning design.
npm i perdil-ui
or
yarn add perdil-ui
Run npx tailwindcss init
to create a tailwind.config.js
file
Add the paths to all of your component files in your tailwind.config.js
file.
// tailwind.config.js
module.exports = {
- content: [],
+ content: ['./App.{js,jsx,ts,tsx}', './node_modules/perdil-ui/index.{js,jsx,ts,tsx}', './node_modules/perdil-ui/src/components/*.{js,jsx,ts,tsx}', './node_modules/perdil-ui/src/components/**/*.{js,jsx,ts,tsx}'],
theme: {
extend: {},
},
plugins: [],
}
Modify your babel.config.js
.
// babel.config.js
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
+ plugins: ['nativewind/babel'],
};
Render the Accordion
component for example.
// App.jsx
import React from 'react';
import { Accordion, AccordionItem } from 'perdil-ui';
const App = () => {
return (
<Accordion>
<AccordionItem
heading={'What is Perdil UI Kit?'}
content={'Perdil UI Kit is a UI library built for React Native using TailwindCSS.'}
/>
<AccordionItem
heading={'How do I install Perdil UI Kit?'}
content={'Add Perdil UI Kit library and then use any of the elements into your project.'}
/>
<AccordionItem
heading={'Can I use Perdil UI Kit with other libraries?'}
content={'Absolutely! Perdil UI Kit works with any other library.'}
/>
</Accordion>
);
}
export default App;
ISC license.
Made with ❤️ by Acquaint team