UI Components

The SSK-Core Kit provides a variety of pre-built UI components designed to accelerate development while integrating seamlessly with libraries like shadcn/ui, daisyUI, and magicUI. These components help you focus on building features, not configuring repetitive UI elements.

Overview

The SSK-Core UI Components are not meant to be a complete UI library. Instead, they provide essential components that work with popular UI frameworks, offering flexibility and customization for developers.

Libraries Used:

  • shadcn/ui: A modern, accessible component library that simplifies complex UI development.

  • daisyUI: A Tailwind CSS plugin offering easy-to-use, themeable components.

  • magicUI: Interactive, dynamic components for adding extra engagement and responsiveness to your app.


Key Features

shadcn/ui

Integrates with Tailwind CSS for customizable, accessible components, such as forms, buttons, and modals. These are perfect for building dynamic, responsive user interfaces.

daisyUI

Provides themeable, responsive components with minimal effort. It supports both light and dark themes natively, which you can switch by updating the data-theme attribute.

magicUI

Offers dynamic and interactive UI elements such as animations, modals, and more. Great for creating fluid user interactions.


Using UI Components

Core Layout: RootLayout

In SSK-Core, the RootLayout component is essential for ensuring consistency across your app. It manages themes, fonts, and general layout structure. If you're building with SSK-Core, use the RootLayout from the core library for your app’s root configuration.

<RootLayout theme="light">{/* Your content here */}</RootLayout>

For SSK-Pro users, you should use the libs/shared/pro/RootLayout.tsx for enhanced layout support and more advanced features.


Theming and Customization

  • Light and Dark Themes: Easily toggle between light and dark modes by setting the data-theme attribute, supported by daisyUI.

  • Utility Classes with Tailwind CSS: You can extend and modify the UI components using Tailwind CSS utility classes. Use twMerge to override or merge classes seamlessly.


Why Use SSK-Core UI Components?

  1. 🔧 Simplified Development: Pre-built components to speed up the development process.

  2. 🎨 Flexible Design: Combine shadcn/ui, daisyUI, and magicUI to build custom UI elements tailored to your needs.

  3. 🌗 Easy Theming: Built-in support for light and dark themes ensures a consistent user experience across different environments.

  4. 📈 Performance Optimized: Designed with high performance in mind, even for complex UIs.


Best Practices

  • Use RootLayout for maintaining theme and layout consistency.

  • Customize UI components with Tailwind CSS and twMerge.

  • For SSK-Pro, leverage the enhanced RootLayout from libs/shared/pro/RootLayout.tsx for additional functionality.


Conclusion

The SSK-Core UI Components offer a versatile and efficient way to build user interfaces. By utilizing popular libraries such as shadcn/ui, daisyUI, and magicUI, you can quickly create responsive, accessible, and customizable UIs for any project. For SSK-Pro users, remember to take advantage of the advanced RootLayout for added features and scalability.

Last updated