primevue-mirror/components/lib/tabmenu/style/TabMenuStyle.js

23 lines
561 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: 'p-tabmenu p-component',
2024-04-09 14:03:17 +00:00
menu: 'p-tabmenu-tablist',
2023-11-08 12:49:46 +00:00
menuitem: ({ instance, index, item }) => [
2024-04-09 14:03:17 +00:00
'p-tabmenu-item',
{
2024-04-09 14:03:17 +00:00
'p-tabmenu-item-active': instance.d_activeIndex === index,
'p-disabled': instance.disabled(item)
}
],
2024-04-09 14:03:17 +00:00
action: 'p-tabmenu-item-link',
icon: 'p-tabmenu-item-icon',
label: 'p-tabmenu-item-label',
inkbar: 'p-tabmenu-ink-bar'
};
export default BaseStyle.extend({
name: 'tabmenu',
classes
});