Grabbed dndbeyond's source code
``` ~/go/bin/sourcemapper -output ddb -jsurl https://media.dndbeyond.com/character-app/static/js/main.90aa78c5.js ```
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import clsx from "clsx";
|
||||
import { FC, HTMLAttributes, ReactNode } from "react";
|
||||
|
||||
import { AnimatedLoadingRingSvg } from "~/tools/js/smartComponents/Svg";
|
||||
|
||||
interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
||||
label?: ReactNode;
|
||||
}
|
||||
|
||||
export const Spinner: FC<SpinnerProps> = ({
|
||||
label = "Loading",
|
||||
className,
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<div className={clsx(["ddbc-loading-placeholder", className])} {...props}>
|
||||
<AnimatedLoadingRingSvg className="ddbc-loading-placeholder__icon" />
|
||||
<span className="ddbc-loading-placeholder__label">{label}</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user