# @gluestack-ui/spinner

> A universal headless Spinner component for React Native, Next.js & React

Latest version **0.1.15** (published 2024-11-11) · 0 weekly downloads

## Install

```sh
npm install @gluestack-ui/spinner
pnpm add @gluestack-ui/spinner
yarn add @gluestack-ui/spinner
bun add @gluestack-ui/spinner
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.1.15 |
| Published | 2024-11-11 |
| First published | 2023-02-21 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5308 |
| Maintainers | rajat693, sravankumarvelangi, vaibhk002, daminipandey, rayan1810, amars29, geekgautam, gluestackadmin, geekashwini, vidhi499, mayankp06, madhavb230100, viraj-10, rohit_singh, meenumakkar, surajahmedc |
| Keywords | react, native, react-native, spinner, gluestack-ui, universal, headless, typescript, component, android, ios, nextjs |

## Links

- npm: https://www.npmjs.com/package/@gluestack-ui/spinner
- Repository: https://github.com/gluestack/gluestack-ui
- Homepage: https://github.com/gluestack/gluestack-ui/tree/main/packages/unstyled/spinner#readme
- Issues: https://github.com/gluestack/gluestack-ui/issues
- npm.io page: https://npm.io/package/@gluestack-ui/spinner

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.15 (latest) — 2024-11-11
- 0.1.14 — 2023-10-20
- 0.1.13 — 2023-10-19
- 0.1.12 — 2023-10-19
- 0.1.11 — 2023-10-17
- 0.1.10 — 2023-09-13
- 0.1.9 — 2023-09-13
- 0.1.8 — 2023-06-29
- 0.1.7 — 2023-06-26
- 0.1.6 — 2023-06-14
- 0.1.5 — 2023-06-09
- 0.1.4 — 2023-06-09
- 0.1.3 — 2023-04-20
- 0.1.2 — 2023-04-12
- 0.1.1 — 2023-03-24
- … 2 more at https://npm.io/package/@gluestack-ui/spinner/versions

## README

# @gluestack-ui/spinner

## Installation

To use `@gluestack-ui/spinner`, all you need to do is install the
`@gluestack-ui/spinner` package:

```sh
$ yarn add @gluestack-ui/spinner

# or

$ npm i @gluestack-ui/spinner
```

## Usage

Spinners are designed to give visual cues to users that an action is being processed or that a change or result is expected. They are useful for improving the user experience by reducing frustration and uncertainty. Here's an example how to use this package to create one:

```jsx
import { createSpinner } from '@gluestack-ui/spinner';
import { Root } from './styled-components';

export const Spinner = createSpinner({ Root });
```

## Customizing the Spinner:

Default styling of all these components can be found in the components/core/spinner file. For reference, you can view the [source code](https://github.com/gluestack/gluestack-ui/blob/development/example/storybook/src/ui-components/Spinner/index.tsx) of the styled `Spinner` components.

```jsx
// import the styles
import { Root } from '../components/core/spinner/styled-components';

// import the createSpinner function
import { createSpinner } from '@gluestack-ui/spinner';

// Understanding the API
const Spinner = createSpinner({
  Root,
});

// Using the spinner component
export default () => <Spinner />;
```

More guides on how to get started are available
[here](https://ui.gluestack.io/docs/components/feedback/spinner).

---
_Source: https://npm.io/package/@gluestack-ui/spinner · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
