Skip to content

Commit

Permalink
feat: Note 组件接收其他参数
Browse files Browse the repository at this point in the history
  • Loading branch information
huayemao committed Jan 6, 2024
1 parent c8e0da8 commit 89d4308
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Annotate.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import { cn } from "@/lib/utils";

function Annotate({ source, children, danger }) {
// todo: remove this comp, use Note istead

function Annotate({ source, children, danger, ...props }) {
return (
<>
<span
className={cn(
"leading-5 lg:leading-6 inline-block outline outline-2 outline-violet-600 px-1",
{ "ml-1": children, "border-rose-700": danger }
)}
{...props}
>
{source}
</span>
Expand Down

1 comment on commit 89d4308

@vercel
Copy link

@vercel vercel bot commented on 89d4308 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dors – ./

dors-huayemao.vercel.app
dors-git-main-huayemao.vercel.app
dors.huayemao.run

Please sign in to comment.