Reorganize repo structure and standards references

This commit is contained in:
david committed 2026-06-29 05:03:42 +02:00
1 parent 3cb93a81be
commit be2054274d
5885 files changed
+2588 -195

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;