fix: disable link navigation and align breadcrumb actions and date focus
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import type {
|
||||
BreadcrumbsProps,
|
||||
BreadcrumbsItemProps,
|
||||
LinkProps,
|
||||
} from "@heroui-vue/components";
|
||||
const root: BreadcrumbsProps = {
|
||||
onAction: (key: string | number) => {
|
||||
void key;
|
||||
},
|
||||
};
|
||||
const item: BreadcrumbsItemProps = { id: 0 };
|
||||
const link: LinkProps = {
|
||||
href: "/files",
|
||||
asChild: true,
|
||||
isDisabled: true,
|
||||
download: "file.txt",
|
||||
};
|
||||
// @ts-expect-error keys include numeric identities
|
||||
const wrongAction: BreadcrumbsProps = { onAction: (_key: boolean) => {} };
|
||||
// @ts-expect-error internal collection identity injection is not a public item prop
|
||||
const privateKey: BreadcrumbsItemProps = { itemKey: 0 };
|
||||
void item;
|
||||
void root;
|
||||
void link;
|
||||
void wrongAction;
|
||||
void privateKey;
|
||||
Reference in New Issue
Block a user