10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
import { ComponentPropsWithRef } from "react";
|
|
|
|
type ButtonLoadingProps = ComponentPropsWithRef<"span">;
|
|
|
|
export const ButtonLoading = (props: ButtonLoadingProps) => {
|
|
const { children, ...rest } = props;
|
|
return <span {...rest}>{children}</span>;
|
|
};
|
|
ButtonLoading.displayName = "ButtonLoading";
|