UNPKG

@create-figma-plugin/ui

Version:

Production-grade Preact components that replicate the Figma UI design

13 lines 767 B
import { h } from 'preact'; import { createComponent } from '../../utilities/create-component.js'; import styles from './loading-indicator.module.css'; export const LoadingIndicator = createComponent(function ({ color, ...rest }, ref) { return (h("div", { ...rest, ref: ref, class: styles.loadingIndicator }, h("svg", { class: styles.svg, style: typeof color === 'undefined' ? undefined : { fill: `var(--figma-color-icon-${color})` } }, h("path", { d: "M11.333 3.011a6 6 0 0 0-2.834-.99A.534.534 0 0 1 8 1.5c.001-.276.225-.502.5-.482A7 7 0 1 1 1.019 8.5.473.473 0 0 1 1.5 8c.276 0 .498.224.52.5a6 6 0 1 0 9.313-5.489Z" })))); }); //# sourceMappingURL=loading-indicator.js.map