import {createRemoteComponent} from '@remote-ui/core'; import type {Appearance, IdProps, Size} from '../shared'; export interface SpinnerProps extends IdProps { /** * Adjusts the size of the icon. * * @defaultValue 'base' */ size?: Extract; /** * Sets the appearance (color) of the icon. * * @defaultValue 'accent' */ appearance?: Extract; /** * A label to use for the Spinner that will be used for buyers using * assistive technologies like screen readers. If will also be used to replace * the animated loading indicator when buyers prefers reduced motion. If not included, * it will use the loading indicator for all buyers. */ accessibilityLabel?: string; } /** * Spinner is used to notify buyers that their action is being processed. * The Spinner is usually used when sending or receiving data from a server. */ export const Spinner = createRemoteComponent<'Spinner', SpinnerProps>( 'Spinner', );