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,42 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Bar Chart — https://app.subframe.com/f023064a5ca0/library?component=Bar+Chart_4d4f30e7-1869-4980-8b96-617df3b37912
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import * as SubframeCore from "@subframe/core";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface BarChartRootProps
|
||||
extends React.ComponentProps<typeof SubframeCore.BarChart> {
|
||||
stacked?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const BarChartRoot = React.forwardRef<
|
||||
React.ElementRef<typeof SubframeCore.BarChart>,
|
||||
BarChartRootProps
|
||||
>(function BarChartRoot(
|
||||
{ stacked = false, className, ...otherProps }: BarChartRootProps,
|
||||
ref
|
||||
) {
|
||||
return (
|
||||
<SubframeCore.BarChart
|
||||
className={SubframeUtils.twClassNames("h-80 w-full", className)}
|
||||
ref={ref}
|
||||
stacked={stacked}
|
||||
colors={[
|
||||
"#3b82f6",
|
||||
"#bfdbfe",
|
||||
"#2563eb",
|
||||
"#93c5fd",
|
||||
"#1d4ed8",
|
||||
"#60a5fa",
|
||||
]}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export const BarChart = BarChartRoot;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { BarChart as BarChartComponent } from "./BarChart";
|
||||
|
||||
/**
|
||||
* 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 BarChart = BarChartComponent;
|
||||
Reference in new issue
Block a user