mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-16 21:03:42 +00:00
init
This commit is contained in:
parent
4f174ec3a8
commit
db1dea097f
81 changed files with 6263 additions and 545 deletions
17
packages/ui/src/button.tsx
Normal file
17
packages/ui/src/button.tsx
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"use client";
|
||||
|
||||
import { ReactNode } from "react";
|
||||
|
||||
interface ButtonProps {
|
||||
children: ReactNode;
|
||||
className?: string;
|
||||
onClick?: () => void;
|
||||
}
|
||||
|
||||
export const Button = ({ children, className, onClick }: ButtonProps) => {
|
||||
return (
|
||||
<button className={className} onClick={onClick} type="button">
|
||||
{children}
|
||||
</button>
|
||||
);
|
||||
};
|
||||
22
packages/ui/src/card.tsx
Normal file
22
packages/ui/src/card.tsx
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { type JSX } from "react";
|
||||
|
||||
export function Card({
|
||||
className,
|
||||
title,
|
||||
children,
|
||||
href,
|
||||
}: {
|
||||
className?: string;
|
||||
title: string;
|
||||
children: React.ReactNode;
|
||||
href: string;
|
||||
}): JSX.Element {
|
||||
return (
|
||||
<a className={className} href={href}>
|
||||
<h2>
|
||||
{title} <span>-></span>
|
||||
</h2>
|
||||
<p>{children}</p>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
11
packages/ui/src/code.tsx
Normal file
11
packages/ui/src/code.tsx
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { type JSX } from "react";
|
||||
|
||||
export function Code({
|
||||
children,
|
||||
className,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
className?: string;
|
||||
}): JSX.Element {
|
||||
return <code className={className}>{children}</code>;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue