Welcome to Solaris UI, a collection of customizable and beautifully designed UI components for your React projects.
- UI Components: A set of stylish and functional UI components to enhance your application’s UI.
- Built with TypeScript & Tailwind CSS: The library is developed using TypeScript and Tailwind CSS, ensuring easy integration and customization.
- Customizable: Fully customizable to match your project’s design requirements.
- Growing Library: Expect more components like form elements, modals, cards, etc., in future releases.
Before using Solaris UI components, make sure you have the following installed in your project:
- TypeScript
- Tailwind CSS
- Framer Motion
- React Icons
For streamlined usage:
- Next.js: components/yourcomponent.tsx
- React.js: src/components/yourcomponent.tsx
Copy the source code of the component you want to use from the library.
Inside your project, create a new .tsx
file, e.g., MyCustomButton.tsx
.
Change the component name according to your preference.
Example:
interface DefaultButtonProps {
label: string;
onClick?: () => void;
}
const DefaultButton: React.FC<DefaultButtonProps> = ({ label, onClick }) => {
return (
<button
onClick={onClick}
className={`
bg-yellow-300 text-black hover:bg-yellow-400 transition-all ease-in w-fit px-6 py-2 rounded-md
`}
>
{label}
</button>
);
};
export default DefaultButton;
Import and use the newly created component anywhere in your project:
import DefaultButton from './MyCustomButton';
const App = () => {
return (
<div>
<DefaultButton label="Click Me" />
</div>
);
};
export default App;