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

CancelButton.tsx

16 lines375 Bytes

1import { forwardRef } from 'react'
2​
3export const CancelButton = forwardRef<
4 HTMLButtonElement,
5 React.ButtonHTMLAttributes<HTMLButtonElement>
6>((props, ref) => {
7 return (
8 <button
9 ref={ref}
10 type="button"
11 tabIndex={0}
12 {...props}
13 className="text-sm rounded-lg text-left p-2 font-medium hover:bg-slate-200 focus:bg-slate-200"
14 />
15 )
16})