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,37 @@
|
||||
"use client";
|
||||
/*
|
||||
* Documentation:
|
||||
* Pie Chart — https://app.subframe.com/f023064a5ca0/library?component=Pie+Chart_0654ccc7-054c-4f3a-8e9a-b7c81dd3963c
|
||||
*/
|
||||
|
||||
import React from "react";
|
||||
import * as SubframeCore from "@subframe/core";
|
||||
import * as SubframeUtils from "../../utils";
|
||||
|
||||
export interface PieChartRootProps
|
||||
extends React.ComponentProps<typeof SubframeCore.PieChart> {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const PieChartRoot = React.forwardRef<
|
||||
React.ElementRef<typeof SubframeCore.PieChart>,
|
||||
PieChartRootProps
|
||||
>(function PieChartRoot({ className, ...otherProps }: PieChartRootProps, ref) {
|
||||
return (
|
||||
<SubframeCore.PieChart
|
||||
className={SubframeUtils.twClassNames("h-52 w-52", className)}
|
||||
ref={ref}
|
||||
colors={[
|
||||
"#3b82f6",
|
||||
"#bfdbfe",
|
||||
"#2563eb",
|
||||
"#93c5fd",
|
||||
"#1d4ed8",
|
||||
"#60a5fa",
|
||||
]}
|
||||
{...otherProps}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export const PieChart = PieChartRoot;
|
||||
@@ -0,0 +1,10 @@
|
||||
"use client";
|
||||
import { PieChart as PieChartComponent } from "./PieChart";
|
||||
|
||||
/**
|
||||
* 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 PieChart = PieChartComponent;
|
||||
Reference in new issue
Block a user