chs/src-web/components/Spinner.tsx

17 lines
358 B
TypeScript
Raw Normal View History

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',
'--spinner-colour': props.colour ?? 'var(--accent)',
2022-10-31 13:25:32 +00:00
}} />
}
export default Spinner;