Something went wrong. Try again.
UIKit a SolidJS component library inspired by Google's Material 3 Expressive
Something went wrong. Try again.
12345678910111213141516171819202122232425262728import clsx from "clsx";import type { Component } from "solid-js";import styles from "./UKCircularProgressIndicator.module.scss";
const UKCircularProgressIndicator: Component<{ class?: string; centerSelf?: boolean }> = (props) => { return ( <div class={clsx(styles.root, props.class, props.centerSelf && styles.centerSelf)}> <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" class={styles.svg}> <title>spinner</title> <path fill-rule="evenodd" clip-rule="evenodd" d="M2.53449 14.8913C3.62961 15.0355 4.4005 16.0401 4.25633 17.1352L4.06276 18.6055L4.00188 19.9998L4.06276 21.3942L4.24493 22.7779L4.54701 24.1405L4.96669 25.4715L5.50078 26.7609L6.14522 27.9989L6.89511 29.176L7.74473 30.2832L8.68762 31.3122L9.7166 32.2551L10.8238 33.1047L12.0009 33.8546L13.2389 34.499L14.5283 35.0331L15.8594 35.4528L17.2219 35.7549L18.6057 35.9371L20 35.9979L21.3943 35.9371L22.778 35.7549L24.1406 35.4528L25.4717 35.0331L26.7611 34.499L27.999 33.8546L29.1761 33.1047L30.3526 32.2019C31.229 31.5295 32.4844 31.6948 33.1569 32.5711C33.8293 33.4474 33.664 34.7029 32.7877 35.3753L31.4726 36.3844L30.0009 37.322L28.4531 38.1277L26.841 38.7955L25.1769 39.3202L23.4733 39.6979L21.7433 39.9256L20 40.0017L18.2567 39.9256L16.5267 39.6979L14.8231 39.3202L13.1589 38.7955L11.5468 38.1277L9.99903 37.322L8.52736 36.3844L7.143 35.3222L5.8565 34.1433L4.67763 32.8568L3.61538 31.4725L2.67782 30.0008L1.8721 28.453L1.20434 26.8409L0.679621 25.1767L0.301947 23.4731L0.0741866 21.7431L-0.00192618 19.9998L0.0741876 18.2566L0.29055 16.6131C0.434725 15.518 1.43937 14.7471 2.53449 14.8913Z" fill="rgb(var(--uk-sys-color-primary))" /> <path fill-rule="evenodd" clip-rule="evenodd" d="M4.0373 11.2627C3.16098 10.5902 2.9957 9.33474 3.66812 8.45842L4.67721 7.14335L5.85608 5.85684L7.14258 4.67797L8.52694 3.61572L9.99861 2.67817L11.5464 1.87244L13.1585 1.20468L14.8227 0.679966L16.5263 0.302293L18.2563 0.0745323L19.9996 -0.00157983L21.7428 0.0745339L23.4729 0.302291L25.1764 0.679966L26.8406 1.20468L28.4527 1.87244L30.0005 2.67817L31.4722 3.61572L32.8565 4.67797L34.143 5.85684L35.3219 7.14335L36.3842 8.5277L37.3217 9.99937L38.1274 11.5472L38.7952 13.1593L39.3199 14.8235L39.6976 16.527L39.9253 18.257L40.0015 20.0003L39.9253 21.7436L39.6976 23.4736L39.3199 25.1772L38.7952 26.8414L38.1609 28.3728C37.7382 29.3933 36.5682 29.8779 35.5477 29.4552C34.5272 29.0325 34.0426 27.8626 34.4653 26.8421L35.0329 25.472L35.4525 24.1409L35.7546 22.7784L35.9368 21.3946L35.9976 20.0003L35.9368 18.606L35.7546 17.2223L35.4525 15.8597L35.0328 14.5287L34.4988 13.2392L33.8543 12.0013L33.1044 10.8242L32.2548 9.71694L31.3119 8.68796L30.2829 7.74508L29.1757 6.89545L27.9986 6.14557L26.7606 5.50113L25.4712 4.96703L24.1402 4.54735L22.7776 4.24528L21.3939 4.06311L19.9996 4.00223L18.6052 4.06311L17.2215 4.24528L15.8589 4.54735L14.5279 4.96703L13.2385 5.50112L12.0005 6.14557L10.8234 6.89545L9.71618 7.74507L8.6872 8.68796L7.74431 9.71695L6.84153 10.8935C6.16911 11.7698 4.91361 11.9351 4.0373 11.2627Z" fill="rgb(var(--uk-sys-color-secondary))" /> </svg> </div> );};
export default UKCircularProgressIndicator;