ds-smart-ui
TypeScript icon, indicating that this package has built-in type declarations

0.1.30 • Public • Published

Edit in Eraser

Smart UI - React Components

Smart UI is a collection of React components designed to streamline the development of user interfaces. It includes a variety of components such as buttons, forms, and navigation elements, all styled to match modern design standards. This documentation provides an overview of how to install and use Smart UI in your React project.

Installation

To install Smart UI, use npm:

npm install ds-smart-ui

After installation, import the CSS file in your main application file to apply the styles:

import "ds-smart-ui/dist/style.css";

Usage

Once Smart UI is installed and the styles are imported, you can start using the components in your React application.

For example, to use the **Button** component:

import React from "react";
import { Button } from "ds-smart-ui";

function App() {
  return (
    <div>
      <Button variant="contained" color="primary">
        Click me
      </Button>
    </div>
  );
}

export default App;

Lucide Icons

For icons, it is recommended to use Lucide Icons along with Smart UI. You can install Lucide Icons using npm:

bashCopy codenpm install lucide-react

Then, you can use Lucide Icons in your **IconButton** component from Smart UI:

import React from "react";
import { IconButton } from "ds-smart-ui";
import { CrossIcon } from "lucide-react";

function App() {
  return (
    <div>
      <IconButton iconStart={<CrossIcon />} onClick={() => console.log("Button clicked")}>Click me</IconButton>
    </div>
  );
}

export default App;

Project Usage

Smart UI is designed to meet the needs of projects like PT Praisindo Teknologi, providing a reliable set of components for building user interfaces efficiently and effectively.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.30
    10
    • latest

Version History

Package Sidebar

Install

npm i ds-smart-ui

Weekly Downloads

10

Version

0.1.30

License

MIT

Unpacked Size

2.89 MB

Total Files

43

Last publish

Collaborators

  • anasshofyandev