ds-smart-ui
v0.1.30
Published
Smart UI is a React component library that helps you build accessible and responsive web applications.
Downloads
97
Maintainers
Readme
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.