# @gluestack-ui/divider

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

Latest version **0.1.10** (published 2024-11-11) · 41.9K weekly downloads

## Install

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

## Health

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

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

Warnings: pre 1.0.

Negative: stale.

## Facts

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

## Links

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

## 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.10 (latest) — 2024-11-11
- 0.1.9 — 2024-07-08
- 0.1.8 — 2023-10-19
- 0.1.7 — 2023-10-19
- 0.1.6 — 2023-10-17
- 0.1.5 — 2023-06-29
- 0.1.4 — 2023-06-26
- 0.1.3 — 2023-06-09
- 0.1.2 — 2023-06-09
- 0.1.1 — 2023-04-12
- 0.1.0 — 2023-02-21
- 0.1.0-alpha.0 — 2023-02-21

## README

# @gluestack-ui/divider

## Installation

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

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

# or

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

## Usage

Revamp your content organization with the Divider component! Use it to visually separate different sections of a list or group for a more structured and easy-to-read interface. Here's an example how to use this package to create one:

```jsx
import Root from './styled-components/Root';
import { createDivider } from '@gluestack-ui/divider';
export const Divider = createDivider({ Root });
```

## Customizing the Divider:

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

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

// import the createDivider function
import { createDivider } from '@gluestack-ui/divider';

// Understanding the API
const Divider = createDivider({
  Root,
});

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

More guides on how to get started are available
[here](https://ui.gluestack.io/docs/components/data-display/divider).

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