File size: 423 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"use client"

import { forwardRef } from "react"
import { Button, type ButtonProps } from "./button"

export interface IconButtonProps extends ButtonProps {}

export const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(
  function IconButton(props, ref) {
    return (
      <Button
        px="0"
        py="0"
        _icon={{ fontSize: "1.2em" }}
        ref={ref}
        {...props}
      />
    )
  },
)