<p>
  <img width="100%" src="https://assets.solidjs.com/banner?type=Primitives&background=tiles&project=Permission" alt="Solid Primitives Permission">
</p>

# @solid-primitives/permission

[![size](https://img.shields.io/bundlephobia/minzip/@solid-primitives/permission?style=for-the-badge)](https://bundlephobia.com/package/@solid-primitives/permission)
[![size](https://img.shields.io/npm/v/@solid-primitives/permission?style=for-the-badge)](https://www.npmjs.com/package/@solid-primitives/permission)
[![stage](https://img.shields.io/endpoint?style=for-the-badge&url=https%3A%2F%2Fraw.githubusercontent.com%2Fsolidjs-community%2Fsolid-primitives%2Fmain%2Fassets%2Fbadges%2Fstage-3.json)](https://github.com/solidjs-community/solid-primitives#contribution-process)

Creates a primitive to query user permissions.

## Installation

```
npm install @solid-primitives/permission
# or
yarn add @solid-primitives/permission
```

## How to use it

```ts
const state: "unknown" | PermissionState = createPermission(descriptor: PermissionDescription | PermissionName);
```

## Demo

TODO

## Changelog

See [CHANGELOG.md](./CHANGELOG.md)
