Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

Button.tsx

19 lines317 Bytes

1'use client'
2​
3export function Button({
4 className,
5 title,
6}: {
7 className?: string
8 title?: string
9}) {
10 return (
11 <button
12 onClick={() => alert(`${title} clicked`)}
13 type="button"
14 className={`bg-blue-500 text-white px-4 py-2 rounded-md ${className}`}
15 >
16 {title}
17 </button>
18 )