mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-17 03:01:25 +00:00
feat(breadcrumb)!: integrate Breadcrumb
with v11 (#1956)
This commit is contained in:
parent
08036e105c
commit
1600308614
10 changed files with 94 additions and 154 deletions
9
types/Breadcrumb/BreadcrumbItem.svelte.d.ts
vendored
9
types/Breadcrumb/BreadcrumbItem.svelte.d.ts
vendored
|
@ -5,7 +5,8 @@ type RestProps = SvelteHTMLElements["li"];
|
|||
|
||||
export interface BreadcrumbItemProps extends RestProps {
|
||||
/**
|
||||
* Set the `href` to use an anchor link
|
||||
* Set the `href` to use an anchor link.
|
||||
* The `Link` component is used if `href` is set.
|
||||
* @default undefined
|
||||
*/
|
||||
href?: string;
|
||||
|
@ -27,5 +28,9 @@ export default class BreadcrumbItem extends SvelteComponentTyped<
|
|||
mouseenter: WindowEventMap["mouseenter"];
|
||||
mouseleave: WindowEventMap["mouseleave"];
|
||||
},
|
||||
{ default: { props?: { ["aria-current"]?: string; class: "bx--link" } } }
|
||||
{
|
||||
default: {
|
||||
props?: Pick<AriaAttributes, "aria-current"> & { class: "bx--link" };
|
||||
};
|
||||
}
|
||||
> {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue