Track HiveGrid Cloud planning reference
This commit is contained in:
1 parent
b3d5ea6764
commit
e341c5938a
5784 files changed
+1104929
-3
No files matched your search
@@ -0,0 +1,86 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Breadcrumbs — https://app.subframe.com/f023064a5ca0/library?component=Breadcrumbs_8898334b-a66f-4ee8-8bd1-afcfa8e37cc0
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import { FeatherChevronRight } from "@subframe/core";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface ItemProps extends React.HTMLAttributes<HTMLSpanElement> {
|
||||
children?: React.ReactNode;
|
||||
active?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Item = React.forwardRef<HTMLSpanElement, ItemProps>(function Item(
|
||||
{ children, active = false, className, ...otherProps }: ItemProps,
|
||||
ref
|
||||
) {
|
||||
return children ? (
|
||||
<span
|
||||
className={SubframeUtils.twClassNames(
|
||||
"group/bbdc1640 line-clamp-1 cursor-pointer break-words text-body-small-regular-0 font-body-small-regular-0 text-text-neutral-tertiary hover:text-text-neutral-primary",
|
||||
{ "text-text-neutral-primary": active },
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
) : null;
|
||||
});
|
||||
|
||||
export interface DividerProps
|
||||
extends React.ComponentProps<typeof FeatherChevronRight> {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const Divider = React.forwardRef<
|
||||
React.ElementRef<typeof FeatherChevronRight>,
|
||||
DividerProps
|
||||
>(function Divider({ className, ...otherProps }: DividerProps, ref) {
|
||||
return (
|
||||
<FeatherChevronRight
|
||||
className={SubframeUtils.twClassNames(
|
||||
"text-body-small-regular-0 font-body-small-regular-0 text-icon-neutral-tertiary",
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export interface BreadcrumbsRootProps
|
||||
extends React.HTMLAttributes<HTMLDivElement> {
|
||||
children?: React.ReactNode;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const BreadcrumbsRoot = React.forwardRef<HTMLDivElement, BreadcrumbsRootProps>(
|
||||
function BreadcrumbsRoot(
|
||||
{ children, className, ...otherProps }: BreadcrumbsRootProps,
|
||||
ref
|
||||
) {
|
||||
return children ? (
|
||||
<div
|
||||
className={SubframeUtils.twClassNames(
|
||||
"flex items-center gap-2",
|
||||
className
|
||||
)}
|
||||
ref={ref}
|
||||
{...otherProps}
|
||||
>
|
||||
{children}
|
||||
</div>
|
||||
) : null;
|
||||
}
|
||||
);
|
||||
|
||||
export const Breadcrumbs = Object.assign(BreadcrumbsRoot, {
|
||||
Item,
|
||||
Divider,
|
||||
});
|
||||
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { Breadcrumbs as BreadcrumbsComponent } from "./Breadcrumbs";
|
||||
|
||||
/**
|
||||
* Add wrapper components and business logic here.
|
||||
* If you modify this file, disable Subframe sync for it to prevent overwrites.
|
||||
* Learn more: https://docs.subframe.com/concepts/syncing-components#wrapping-components
|
||||
*/
|
||||
|
||||
export const Breadcrumbs = BreadcrumbsComponent;
|
||||
Reference in new issue
Block a user