mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-12 11:49:55 +00:00
23 lines
479 B
TypeScript
23 lines
479 B
TypeScript
import { ReactNode } from "react";
|
|
import { cn } from "@/lib/cn";
|
|
|
|
type Props = {
|
|
children?: ReactNode;
|
|
margin?: boolean;
|
|
className?: string;
|
|
};
|
|
|
|
export const HelpText = ({ children, margin = true, className }: Props) => (
|
|
<span
|
|
className={cn(
|
|
"text-[.8rem] dark:text-nb-gray-300 block font-light tracking-wide",
|
|
margin && "mb-2",
|
|
className,
|
|
)}
|
|
>
|
|
{children}
|
|
</span>
|
|
);
|
|
|
|
export default HelpText;
|