* Add sortable, radio and typography components * Remove stray css classes * Prevent drag of items from other draggable * Minor cleanup * Update yarn.lock * Remove radio input component as it was build on headless ui v2.0.0 and now we are using v1.7.0 * Fix build errors * Update dependencies in use memo.
15 lines
386 B
TypeScript
15 lines
386 B
TypeScript
import React from "react";
|
|
import { cn } from "../../helpers";
|
|
|
|
type Props = {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
noMargin?: boolean;
|
|
};
|
|
const SubHeading = ({ children, className, noMargin }: Props) => (
|
|
<h3 className={cn("text-xl font-medium text-custom-text-200 block leading-7", !noMargin && "mb-2", className)}>
|
|
{children}
|
|
</h3>
|
|
);
|
|
|
|
export { SubHeading };
|