, "level">) => {
return ;
};
Component.displayName = `H${level}`;
return Component;
};
export const h2 = createHeadingComponent(2);
export const h3 = createHeadingComponent(3);
export const h4 = createHeadingComponent(4);
const InfoIcon = (props: React.ComponentPropsWithoutRef<"svg">) => {
return (
);
};
export const Note = ({ children }: { children: React.ReactNode }) => {
return (
);
};
export const Row = ({ children }: { children: React.ReactNode }) => {
return (
{children}
);
};
export const Col = ({ children, sticky = false }: { children: React.ReactNode; sticky?: boolean }) => {
return (
:first-child]:mt-0 [&>:last-child]:mb-0", sticky && "xl:sticky xl:top-24")}>
{children}
);
};
export const Properties = ({ children }: { children: React.ReactNode }) => {
return (
);
};
export const Property = ({
name,
children,
type,
}: {
name: string;
children: React.ReactNode;
type?: string;
}) => {
return (
- Name
-
{name}
{type && (
<>
- Type
- {type}
>
)}
- Description
- {children}
);
};