# Smart.UI Component Library
[](https://www.npmjs.com/package/smart-webcomponents)
[](https://www.npmjs.com/package/smart-webcomponents)
[](https://github.com/HTMLElements/smart-webcomponents)
[](LICENSE)
Enterprise-ready UI components for Angular, React, Vue, Blazor, and Vanilla JS โ Build dashboards, data-heavy apps, and complex interfaces faster.

## โก Why Developers Choose Smart Web Components
Cross-Framework: Angular, React, Vue, Blazor, and plain JS.
Feature-Rich & Enterprise-Ready: Components not easily found in free libraries.
Easy Integration: Clear documentation, demos, and framework-specific examples.
Lightweight & Modular: Import only the components you need.
---
## โจ Features
- ๐ **Data Grid & TreeGrid** โ Excel-like features (sorting, filtering, grouping, pivoting, spreadsheet-style editing, AI filtering, and more).
- ๐ **Scheduler & Gantt Chart** โ Full project and resource scheduling with timeline, calendar, and critical path support.
- ๐๏ธ **Docking Layout** โ Build dynamic dashboards with drag-and-drop panels.
- ๐ **Editor** โ Rich text editing with custom CSS support.
- ๐ **CardView, Kanban, Charts, Tabs, Accordion, Menu, and dozens more**.
- ๐ **20+ Localizations** included in the library for global apps.
- โก **Framework Agnostic** โ Works with your stack of choice: Angular, React, Vue, Blazor, or plain JavaScript.
---
## ๐ Installation
Install from [npm](https://www.npmjs.com/package/smart-webcomponents):
```bash
# JavaScript
npm install smart-webcomponents
# Angular
npm install smart-webcomponents-angular
Install specific component:
npm install @smart-webcomponents-angular/grid
# React
npm install smart-webcomponents-react
# Vue
npm install smart-webcomponents
```
---
## ๐ฅ Usage Examples
### โ
JavaScript
```html
```
---
### โ
Angular
```ts
// app.component.ts
๏ปฟimport { Component, ViewChild, AfterViewInit, ViewEncapsulation } from '@angular/core';
import { GridComponent, GridColumn, DataAdapter, Smart } from 'smart-webcomponents-angular/grid';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { GridModule } from 'smart-webcomponents-angular/grid';
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule, GridModule, RouterOutlet],
template: '',
styleUrls: ['app.component.css'],
encapsulation: ViewEncapsulation.None
})
export class AppComponent implements AfterViewInit {
@ViewChild("grid", { read: GridComponent, static: false }) grid!: GridComponent;
dataSource: any[] = [
{ "firstName": "Beate", "lastName": "Wilson", "productName": "Caramel Latte"},
{ "firstName": "Ian", "lastName": "Nodier", "productName": "Caramel Latte"},
{ "firstName": "Petra", "lastName": "Vileid", "productName": "Green Tea"},
{ "firstName": "Mayumi", "lastName": "Ohno", "productName": "Caramel Latte"},
{ "firstName": "Mayumi", "lastName": "Saylor", "productName": "Espresso con Panna"},
{ "firstName": "Regina", "lastName": "Fuller", "productName": "Caffe Americano" },
{ "firstName": "Regina", "lastName": "Burke", "productName": "Caramel Latte"},
{ "firstName": "Andrew", "lastName": "Petersen", "productName": "Caffe Americano"},
{ "firstName": "Martin", "lastName": "Ohno", "productName": "Espresso con Panna"},
{ "firstName": "Beate", "lastName": "Devling", "productName": "Green Tea"},
{ "firstName": "Sven", "lastName": "Devling", "productName": "Espresso Truffle"},
{ "firstName": "Petra", "lastName": "Burke", "productName": "Peppermint Mocha Twist"},
{ "firstName": "Marco", "lastName": "Johnes", "productName": "Caffe Mocha"}
]
columns: GridColumn[] = [{
label: 'First Name',
dataField: 'firstName'
},
{
label: 'Last Name',
dataField: 'lastName'
},
{
label: 'Product',
dataField: 'productName'
}
];
ngAfterViewInit(): void {
}
}
```
---
### โ
React
```jsx
import 'smart-webcomponents-react/source/styles/smart.default.css';
import { Smart, Grid } from 'smart-webcomponents-react/grid';
function App() {
const behavior = {
columnResizeMode: 'growAndShrink'
}
const appearance = {
alternationCount: 2,
showRowHeader: true,
showRowHeaderSelectIcon: true,
showRowHeaderFocusIcon: true
}
const paging = {
enabled: true
}
const pager = {
visible: true
}
const sorting = {
enabled: true
}
const editing = {
enabled: true
}
const selection = {
enabled: true,
allowCellSelection: true,
allowRowHeaderSelection: true,
allowColumnHeaderSelection: true,
mode: 'extended'
}
const dataSourceSettings = {
dataFields: [
'firstName: string',
'lastName: string',
'productName: string'
]
}
const dataSource = [
{ "firstName": "Beate", "lastName": "Wilson", "productName": "Caramel Latte"},
{ "firstName": "Ian", "lastName": "Nodier", "productName": "Caramel Latte"},
{ "firstName": "Petra", "lastName": "Vileid", "productName": "Green Tea"},
{ "firstName": "Mayumi", "lastName": "Ohno", "productName": "Caramel Latte"},
{ "firstName": "Mayumi", "lastName": "Saylor", "productName": "Espresso con Panna"},
{ "firstName": "Regina", "lastName": "Fuller", "productName": "Caffe Americano" },
{ "firstName": "Regina", "lastName": "Burke", "productName": "Caramel Latte"},
{ "firstName": "Andrew", "lastName": "Petersen", "productName": "Caffe Americano"},
{ "firstName": "Martin", "lastName": "Ohno", "productName": "Espresso con Panna"},
{ "firstName": "Beate", "lastName": "Devling", "productName": "Green Tea"},
{ "firstName": "Sven", "lastName": "Devling", "productName": "Espresso Truffle"},
{ "firstName": "Petra", "lastName": "Burke", "productName": "Peppermint Mocha Twist"},
{ "firstName": "Marco", "lastName": "Johnes", "productName": "Caffe Mocha"}
]
const columns = [{
label: 'First Name',
dataField: 'firstName'
},
{
label: 'Last Name',
dataField: 'lastName'
},
{
label: 'Product',
dataField: 'productName'
}
]
return (
);
}
export default App;
```
---
### โ
Vue
```vue
The Grid in this demo displays data in a series of rows and columns. This
is the simplest case when the Grid is bound to a local data source.
```
---
### โ
Blazor
```razor
@page "/grid-example"
@using Smart.Blazor
@code {
public object[] dataSource = new object[]
{
new { id = 1, product = "Laptop", price = 1200 },
new { id = 2, product = "Phone", price = 800 }
};
public object[] columns = new object[]
{
new { label = "ID", dataField = "id", width = 50 },
new { label = "Product", dataField = "product" },
new { label = "Price", dataField = "price", cellsFormat = "c2" }
};
}
```
---
## ๐ Documentation
- [Official Docs & API Reference](https://www.htmlelements.com/docs/)
- [Demos & Examples](https://www.htmlelements.com/demos/)
---
## ๐ Whatโs New
- ๐ Localizations for all components (20 languages).
- ๐ Gantt Chart Critical Path.
- ๐ Grid Spreadsheet Extensions (bold, italic, underline, strikethrough, colors).
- ๐ Grid Transpose & AI Filtering.
- ๐ฑ Number pad input editor for mobile devices.
---
## ๐ค Contributing
We welcome feedback, issues, and pull requests!
Open to bug reports, documentation fixes, demo contributions
Please see our [contribution guidelines](CONTRIBUTING.md).
---
## ๐ฆ License
This project is licensed under the **Commercial License**.
See [LICENSE](LICENSE) for more information.
---
## ๐ Links
- ๐ [Website](https://www.htmlelements.com/)
- ๐ [Documentation](https://www.htmlelements.com/docs/)
- ๐ฎ [Live Demos](https://www.htmlelements.com/demos/)
- ๐ฐ [Changelog](https://www.htmlelements.com/docs/release-notes/)
---
> ๐ก **Smart.UI Component Library** help you build applications that look modern, feel responsive, and scale with your needs.