diff options
| author | 2023-11-03 21:13:33 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:13:33 +0800 | |
| commit | 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (patch) | |
| tree | 51614fe47bff8bb11028a07d4a35c34c9ff6594a /docs/components/Badge.tsx | |
| parent | 8f135707d069c900e055dae71e69909d6b9a41bb (diff) | |
| download | HydroRoll-9f0d43fe099a95ab1516ae951dcb60a89e76a5a5.tar.gz HydroRoll-9f0d43fe099a95ab1516ae951dcb60a89e76a5a5.zip | |
chore: delete useless codes
Diffstat (limited to 'docs/components/Badge.tsx')
| -rw-r--r-- | docs/components/Badge.tsx | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/docs/components/Badge.tsx b/docs/components/Badge.tsx deleted file mode 100644 index 45e5a0c..0000000 --- a/docs/components/Badge.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import cn from "classnames"; - -import type { ReactNode } from "react"; - -export type BadgeProps = React.ComponentProps<"span"> & { - children: ReactNode; - className?: string; -}; - -export default function Badge(props: BadgeProps) { - const { children, className, ...rest } = props; - - return ( - <span - className={cn( - "dark:text-black text-white inline-flex items-center justify-center shrink-0 box-border rounded-lg capitalize whitespace-nowrap font-bold tabular-nums h-5 px-2 text-xs bg-gradient-to-r from-[#d74a41] to-[#407aeb] align-middle", - className - )} - {...rest} - > - {children} - </span> - ); -} |
