This library provides a flexible and customizable tab component for your Angular applications. Users can integrate the tab component using Angular services or selectors with ease. Below are the features, usage instructions, and integration details:
Users can easily install the RUC (Ruxptest Library) from npm. Additionally, they can also choose to install individual components based on their requirements.
npm install @uxpractice/ruc-lib
If users only need the dataflow component, they can install it separately
npm install @ruc-lib/tab
To use the tab component in your project, follow the integration guidelines provided in the documentation. Customize the tab as per your requirements by adjusting the configuration options.
Import ContextModule into app.module.ts file.
for library
import { RuclibTabModule } from '@uxpractice/ruc-lib/tab'
for seperate package
import { RuclibTabModule } from '@ruc-lib/tab'
<uxp-ruclib-tab [rucInputData]="rucinputObjectDataTab" [dataSource]="dataSourceTab" [customTheme]="customTheme" (rucEvent)="passEvent($event)"></uxp-ruclib-tab>
• dataSource -> Data to be passed to the tab.
[i.e- tabId, tabName, tabContent, isDisabled, isActive, iconName, closeIcon].
• rucInputData -> Input Data to be passed to the tab.
[i.e- animationDuration, alignTabs, headerPosition, isActivetabIndex].
• customTheme: Custom styling/theme for the tab.
• rucEvent -> Event emitted from the tab.
export const mockDataForDataSourceTab = [
{ tabId: 1,
tabName: 'tabName1',
tabContent: 'tabContent1',
isDisabled: false,
isActive: true,
iconName: 'book',
closeIcon: false,
},
{
tabId: 2,
tabName: 'tabName2',
tabContent: 'tabContent2',
isDisabled: false,
isActive: false,
iconName: 'cloud',
closeIcon: false,
},
];
export const mockDataForRucinputObjectDataTab = {
animationDuration: 2000,
alignTabs: 'start',
headerPosition: 'top',
isActivetabIndex: 2,
};
Contributions are welcome! Feel free to open issues or pull requests for any enhancements or fixes.
Thank you for choosing the Tab Component Library. If you have any feedback or suggestions, please let us know!