2022-10-31 13:25:32 +00:00
|
|
|
import { Component } from "solid-js";
|
|
|
|
import './Spinner.css';
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
colour?: string;
|
|
|
|
size?: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
const Spinner: Component<Props> = (props) => {
|
|
|
|
return <div class="spinner" style={{
|
|
|
|
'--spinner-size': props.size ?? '32px',
|
2022-11-01 10:00:17 +00:00
|
|
|
'--spinner-colour': props.colour ?? 'var(--accent)',
|
2022-10-31 13:25:32 +00:00
|
|
|
}} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Spinner;
|