refine-sanity
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

refine-sanity

License NPM Version NPM Downloads GitHub Repo stars Code Climate maintainability

npm peer dependency version (scoped) npm peer dependency version (scoped) npm (prod) dependency version (scoped) npm type definitions

refine-sanity is a data provider for Refine that enables seamless integration with Sanity. It simplifies the management of your Sanity data within Refine-powered React applications.

Installation

Install refine-sanity via npm or yarn:

npm install @sanity/client refine-sanity
# or
yarn add @sanity/client refine-sanity

Usage

import dataProvider from "refine-sanity";
import { createClient } from "@sanity/client";

const client = createClient({
    token: "EDITOR_SANITY_ACCESS_TOKEN",
    projectId: "SANITY_PROJECT_ID",
    dataset: "SANITY_DATASET"
});

const App = () => {
  return (
    <Refine
      dataProvider={dataProvider(client)}
      /* ... */
    >
      {/* ... */}
    </Refine>
  );
};

Documentation

Package Sidebar

Install

npm i refine-sanity

Weekly Downloads

525

Version

1.1.1

License

none

Unpacked Size

18.6 kB

Total Files

17

Last publish

Collaborators

  • hirenf14