mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
20 lines
460 B
TypeScript
20 lines
460 B
TypeScript
import React, { ForwardedRef, forwardRef } from 'react'
|
|
import { IconButton, IconButtonProps } from './IconButton'
|
|
|
|
export const RoundIconButton = forwardRef(function RoundIconButton(
|
|
props: IconButtonProps,
|
|
ref: ForwardedRef<HTMLButtonElement>,
|
|
) {
|
|
return (
|
|
<IconButton
|
|
ref={ref}
|
|
variant="invisible"
|
|
title={props['aria-label']}
|
|
{...props}
|
|
sx={{
|
|
borderRadius: '20px',
|
|
...props.sx,
|
|
}}
|
|
/>
|
|
)
|
|
})
|