diff --git a/src/components/InlineSpinner/InlineSpinner.tsx b/src/components/InlineSpinner/InlineSpinner.tsx index 6ce4f132..fdf19511 100644 --- a/src/components/InlineSpinner/InlineSpinner.tsx +++ b/src/components/InlineSpinner/InlineSpinner.tsx @@ -14,21 +14,20 @@ See the License for the specific language governing permissions and limitations under the License. */ -import React, { forwardRef } from "react"; +import React, { SVGAttributes } from "react"; import styles from "./InlineSpinner.module.css"; import SpinnerIcon from "@vector-im/compound-design-tokens/icons/spinner.svg"; type InlineSpinnerProps = { size?: number; -} & React.HTMLAttributes; +} & SVGAttributes; -export const InlineSpinner = forwardRef( - function InlineSpinner({ size = 20 }: InlineSpinnerProps) { - return ( - - ); - }, -); +export function InlineSpinner({ size = 20, ...props }: InlineSpinnerProps) { + return ( + + ); +}