mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-22 11:17:05 +02:00
radix composing styles
This commit is contained in:
1 parent
37efc2b4a4
commit
d477a3a7a4
3 files changed
+39
-74
No files matched your search
Whitespace-only changes.
@@ -1,75 +1,5 @@
|
||||
import {
|
||||
Menubar,
|
||||
MenubarCheckboxItem,
|
||||
MenubarContent,
|
||||
MenubarLabel,
|
||||
MenubarRadioGroup,
|
||||
MenubarRadioItem,
|
||||
MenubarSub,
|
||||
MenubarSubContent,
|
||||
MenubarSubTrigger,
|
||||
MenubarTrigger,
|
||||
type MenubarCheckboxItemProps,
|
||||
type MenubarContentProps,
|
||||
type MenubarLabelProps,
|
||||
type MenubarProps,
|
||||
type MenubarRadioGroupProps,
|
||||
type MenubarRadioItemProps,
|
||||
type MenubarSubContentProps,
|
||||
type MenubarSubProps,
|
||||
type MenubarSubTriggerProps,
|
||||
type MenubarTriggerProps,
|
||||
} from "radix-ui/menubar";
|
||||
import { DropdownMenu as _ } from "radix-ui";
|
||||
import { composeRadixComponents } from "../../ui/compose";
|
||||
import styles from "./index.module.css";
|
||||
|
||||
function Root(props: MenubarProps) {
|
||||
return <Menubar {...props} />;
|
||||
}
|
||||
|
||||
function Trigger(props: MenubarTriggerProps) {
|
||||
return <MenubarTrigger {...props} />;
|
||||
}
|
||||
|
||||
function Content(props: MenubarContentProps) {
|
||||
return <MenubarContent {...props} />;
|
||||
}
|
||||
|
||||
function Sub(props: MenubarSubProps) {
|
||||
return <MenubarSub {...props} />;
|
||||
}
|
||||
|
||||
function SubTrigger(props: MenubarSubTriggerProps) {
|
||||
return <MenubarSubTrigger {...props} />;
|
||||
}
|
||||
|
||||
function SubContent(props: MenubarSubContentProps) {
|
||||
return <MenubarSubContent {...props} />;
|
||||
}
|
||||
|
||||
function Label(props: MenubarLabelProps) {
|
||||
return <MenubarLabel {...props} />;
|
||||
}
|
||||
|
||||
function CheckboxItem(props: MenubarCheckboxItemProps) {
|
||||
return <MenubarCheckboxItem {...props} />;
|
||||
}
|
||||
|
||||
function RadioGroup(props: MenubarRadioGroupProps) {
|
||||
return <MenubarRadioGroup {...props} />;
|
||||
}
|
||||
|
||||
function RadioItem(props: MenubarRadioItemProps) {
|
||||
return <MenubarRadioItem {...props} />;
|
||||
}
|
||||
|
||||
export const DropdownMenu = {
|
||||
Root,
|
||||
Trigger,
|
||||
Content,
|
||||
Sub,
|
||||
SubTrigger,
|
||||
SubContent,
|
||||
Label,
|
||||
CheckboxItem,
|
||||
RadioGroup,
|
||||
RadioItem,
|
||||
};
|
||||
export const DropdownMenu = composeRadixComponents(_, styles);
|
||||
Reference in new issue
Block a user