Styled List Components
Description
Liberty Core provides predefined styled list components to enhance UI consistency and usability.
List_StaticMenusis a styled version of the standardList, ensuring that the content does not overflow.ListItemButton_DynamicMenusis an enhancedListItemButtonthat dynamically adjusts its background when opened.
Props
ListItemButton_DynamicMenus
| Prop | Type | Default | Description |
|---|---|---|---|
open | boolean | false | Controls the background change when expanded. |
Example Usage
Basic Styled List
import { List_StaticMenus, ListItemButton_DynamicMenus } from '@nomana-it/liberty-core';
export const ListExample = () => {
return (
<List_StaticMenus>
<ListItemButton_DynamicMenus open={true}>
Dynamic List Item
</ListItemButton_DynamicMenus>
</List_StaticMenus>
);
};
Styled List Components
List_StaticMenus: A non-overflowing styled list.ListItemButton_DynamicMenus: A dynamic list item button with background changes.
Notes
ListItemButton_DynamicMenususes opacity-based background change when open.List_StaticMenusensures list content remains visually structured.
Useful Links
🔗 GitHub Repository (Core): Liberty Core
🔗 GitHub Repository (Test Project): Liberty Test
📖 Live Documentation: Liberty Core Docs
💖 Sponsor & Support: Sponsor Liberty Core