We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wish I could put a custom component in the menuItem. For example, to put a badge to display real-time information from a table. Here is concept ex).
import { MenuItemType } from '@paljs/ui'; const items: MenuItemType[] = [ { title: 'Home Page', icon: { name: 'home' }, link: { href: '/admin' } }, { title: 'Models', icon: { name: 'layers-outline' }, children: [ { title: 'Users', link: { href: '/admin/models/User' } }, extras: [ // <- this { position: 'prefix', component: <Hello /> }, { position: 'postfix', component: <World /> }, ], ], }, ]; export default items;
The text was updated successfully, but these errors were encountered:
1977d5a
fix #113
9094055
It works well, but there is a problem with the arrangement of custom components added in the default css. Can you add the following css by default?
.menu-item { position: relative; }
Sorry, something went wrong.
You can add this in your use case just warp the component with styled component and add this to it
I'm already using it like that, but wouldn't it be better to apply it by default so that new users don't feel confused?
AhmedElywa
No branches or pull requests
I wish I could put a custom component in the menuItem. For example, to put a badge to display real-time information from a table. Here is concept ex).
The text was updated successfully, but these errors were encountered: