vira
Version:
A simple and highly versatile design system using element-vir.
37 lines (36 loc) • 1.26 kB
TypeScript
import { type PartialWithUndefined } from '@augment-vir/common';
/**
* Possible corner styles for {@link ViraMenu}.
*
* @category Internal
*/
export declare enum ViraMenuCornerStyle {
/** Rounding of corners depends on the open direction of the menu. */
Directional = "directional",
/** All of the menus corners should be rounded. */
AllRounded = "all-rounded",
/** None of the menus corners should be rounded. */
AllSquare = "all-square"
}
/**
* Menu pop-up directions available for {@link ViraMenu}.
*
* @category Internal
*/
export declare enum ViraMenuPopUpDirection {
Downwards = "downwards",
Upwards = "upwards"
}
/**
* A simple default style wrapper for pop-up menus. Consider using `renderMenuItemEntries` to help
* rendering many menu items.
*
* @category PopUp
* @category Elements
*/
export declare const ViraMenu: import("element-vir").DeclarativeElementDefinition<"vira-menu", PartialWithUndefined<{
/** @default PopUpMenuDirection.Downwards */
direction: ViraMenuPopUpDirection;
/** @default PopUpMenuCornerStyle.Directional */
cornerStyle: ViraMenuCornerStyle;
}>, {}, {}, "vira-menu-open-upwards" | "vira-menu-rounded" | "vira-menu-square", "vira-menu-", readonly [], readonly []>;