Fusion UI LogoFusion UI Logo
Fusion UI LogoFusion UI Logo
/
Getting Started
Concepts
Components
Example Apps
Getting Started
Concepts
Components
Example Apps
Fusion UI LogoFusion UI Logo
Getting Started
Concepts
Components
Example Apps
Overview
Actions
Button
Button Group
Segmented Button
Deprecated
Split Button
Toggle Button
Click To Copy
Toolbar
Navigation
Main Nav
Side Menu
Page Header
Tabs
Breadcrumbs
On-Page Menu
Link
Command Menu
Application Switcher
Context Switcher
Account Menu
Menu Bar
Deprecated
Inputs & Forms
Form
Form Actions
Deprecated
Form Divider
Form Field
Form Repeat
Form Spacing
Input
Prefix & Suffix
Rich Text Input
Autocomplete
Select
Date / Time Input
Calendar
Slider
Selection
Checkbox
Radio
Switch
Switch Select
Chip
Chip Choice
Chip Filter
Chip Input
Chip Sortable
Visual Select
Pricing Plan Select
Feedback & Loading
Banner
Inline Message
Snackbar
Inline Snackbar
Loading Spinner
Skeleton
Text Skeleton
Contextual Information
Badge
Status
Tag
Tooltip
Info
Hotkey
Icon
Icon Sizer
Containers & Overlays
Tile
Tile Content
Tile Footer
Tile Header
Annotated Section
Modal
Sheet
Popover
Context Menu
Data Display
Data Table
List
Timeline
Data Visualization
KPI Card
Ratio Card
Bar Chart
Line Chart
Pie Chart
Heatmap Calendar
Layout
Container
Stack Layout
Flow Layout
Internals
Blanket
Expansion Panel
Menu List Base
Menu Group
Search Bar
Components
...
Menu List Base

Menu List Base

Shared list of menu items behind menus, selects and command menu.

Overview

MenuListBase is the item all menus are made of: context menus, selects, the command menu and side menus. Its props change size, look and interactivity.

Image
Menu List Base
Tag 123
Subtitle
Tag 123
Ctrl+C
"use client";
import React from "react";
import {
Hotkey,
IconArticle,
IconEmotionHappy,
IconShield,
MenuListBase,
Tag,
} from "@brynlabs/fusion-ui";
export const MenuListBaseExample = () => (
<div
style={{
width: "100%",
border: "1px solid lightgray",
borderRadius: "var(--border-radius--35)",
}}>
<MenuListBase
label={"Menu List Base"}
image={"https://i.pravatar.cc/300"}
subtitle={"Subtitle"}
showChevron={true}
labelPrefix={<IconEmotionHappy />}
labelSuffix={
<>
<IconArticle />
<Tag icon={<IconShield />}>Tag 123</Tag>
</>
}
backSlot={
<>
<Tag icon={<IconShield />}>Tag 123</Tag>
<Hotkey hotkey={["action", "c"]} />
</>
}
onClick={() => console.log("Clicked")}
/>
</div>
);

States

Image
Menu List Base
Tag 123
Subtitle
Tag 123
Ctrl+C
Image
Menu List Base
Tag 123
Subtitle
Tag 123
Ctrl+C
Image
Menu List Base
Tag 123
Subtitle
Tag 123
Ctrl+C
Image
Menu List Base
Tag 123
Subtitle
Tag 123
Ctrl+C
"use client";
import React, {useState} from "react";
import {
Hotkey,
IconArticle,
IconEmotionHappy,
IconShield,
MenuListBase,
Tag,
} from "@brynlabs/fusion-ui";
export const MenuListBaseStatesExample = () => {
const [selected, setSelected] = useState(true);
return (
<div
style={{
width: "100%",
border: "1px solid lightgray",
borderRadius: "var(--border-radius--35)",
}}>
<MenuListBase
label={"Menu List Base"}
image={"https://i.pravatar.cc/300"}
subtitle={"Subtitle"}
showChevron={true}
labelPrefix={<IconEmotionHappy />}
labelSuffix={
<>
<IconArticle />
<Tag icon={<IconShield />}>Tag 123</Tag>
</>
}
backSlot={
<>
<Tag icon={<IconShield />}>Tag 123</Tag>
<Hotkey hotkey={["action", "c"]} />
</>
}
/>
<MenuListBase
label={"Menu List Base"}
image={"https://i.pravatar.cc/300"}
subtitle={"Subtitle"}
showChevron={true}
labelPrefix={<IconEmotionHappy />}
labelSuffix={
<>
<IconArticle />
<Tag icon={<IconShield />}>Tag 123</Tag>
</>
}
backSlot={
<>
<Tag icon={<IconShield />}>Tag 123</Tag>
<Hotkey hotkey={["action", "c"]} />
</>
}
state={"active"}
/>
<MenuListBase
label={"Menu List Base"}
image={"https://i.pravatar.cc/300"}
subtitle={"Subtitle"}
showChevron={true}
labelPrefix={<IconEmotionHappy />}
labelSuffix={
<>
<IconArticle />
<Tag icon={<IconShield />}>Tag 123</Tag>
</>
}
backSlot={
<>
<Tag icon={<IconShield />}>Tag 123</Tag>
<Hotkey hotkey={["action", "c"]} />
</>
}
hasCheckbox={true}
selected={selected}
onSelectedChange={setSelected}
/>
<MenuListBase
label={"Menu List Base"}
image={"https://i.pravatar.cc/300"}
subtitle={"Subtitle"}
labelPrefix={<IconEmotionHappy />}
labelSuffix={
<>
<IconArticle />
<Tag tagStyle={"critical"} emphasis={"high"} icon={<IconShield />}>
Tag 123
</Tag>
</>
}
backSlot={
<>
<Tag tagStyle={"critical"} emphasis={"high"} icon={<IconShield />}>
Tag 123
</Tag>
<Hotkey hotkey={["action", "c"]} />
</>
}
state={"danger"}
/>
</div>
);
};

Variants

Copy
Ctrl+C
Paste
Ctrl+V
Delete
Ctrl+X
More

Show Title
Ctrl+C
Show Content
Ctrl+V
Show Footer
Ctrl+V
Show All
Ctrl+X

Selected: false, false, true, false
"use client";
import React, {useState} from "react";
import {Hotkey, IconArticle, IconFileCopy, IconDeleteBin5, MenuListBase} from "@brynlabs/fusion-ui";
export const MenuListBaseVariantsExample = () => {
const [selected, setSelected] = useState<boolean[]>([false, false, true, false]);
const handleSelectedChange = (index: number) => (value: boolean) => {
setSelected(prev => prev.map((item, i) => (i === index ? value : item)));
};
return (
<>
<div
style={{
width: "300px",
border: "1px solid lightgray",
borderRadius: "var(--border-radius--35)",
}}>
<MenuListBase
label={"Copy"}
labelPrefix={<IconFileCopy />}
backSlot={<Hotkey hotkey={["action", "c"]} />}
/>
<MenuListBase
label={"Paste"}
alignLabelPrefix={true}
backSlot={<Hotkey hotkey={["action", "v"]} />}
state={"active"}
/>
<MenuListBase
label={"Delete"}
labelPrefix={<IconDeleteBin5 />}
backSlot={<Hotkey hotkey={["action", "X"]} />}
state={"danger"}
/>
<MenuListBase label={"More"} showChevron={true} labelPrefix={<IconArticle />} />
</div>
<br />
<div
style={{
width: "300px",
border: "1px solid lightgray",
borderRadius: "var(--border-radius--35)",
}}>
<MenuListBase
label={"Show Title"}
backSlot={<Hotkey hotkey={["action", "c"]} />}
hasCheckbox={true}
selected={selected[0]}
onSelectedChange={handleSelectedChange(0)}
/>
<MenuListBase
label={"Show Content"}
backSlot={<Hotkey hotkey={["action", "v"]} />}
state={"active"}
hasCheckbox={true}
selected={selected[1]}
onSelectedChange={handleSelectedChange(1)}
/>
<MenuListBase
label={"Show Footer"}
backSlot={<Hotkey hotkey={["action", "v"]} />}
hasCheckbox={true}
selected={selected[2]}
onSelectedChange={handleSelectedChange(2)}
/>
<MenuListBase
label={"Show All"}
backSlot={<Hotkey hotkey={["action", "X"]} />}
state={"danger"}
hasCheckbox={true}
selected={selected[3]}
onSelectedChange={handleSelectedChange(3)}
/>
</div>
<br />
Selected: {selected.join(", ")}
</>
);
};
On this page
  • Overview
  • States
  • Variants