2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.tsx 403 B

12345678910111213141516
  1. import {forwardRef, HTMLProps, ReactNode} from 'react';
  2. export interface ButtonProps extends Omit<HTMLProps<HTMLButtonElement>, 'type'> {
  3. type?: 'button' | 'reset' | 'submit';
  4. }
  5. export const Button = forwardRef<HTMLButtonElement, ButtonProps>(({
  6. className = '',
  7. ...etcProps
  8. }, ref) => (
  9. <button
  10. {...etcProps}
  11. ref={ref}
  12. className={`h-12 px-4 border-2 rounded ${className}`}
  13. />
  14. ))