LogoLogo
  • Get Started
    • Overview
    • Concepts
      • Spaces & space groups
      • Posts
      • Messages
      • TipTap editor
      • File uploads
      • Rich Text Body
    • Websockets (Beta)
  • APIs
    • Admin API
      • Quick start
      • Usage and limits
        • Optimizing usage
        • Best Practices
      • V1
      • V2
    • Headless
      • Quick start
      • Member API
        • Docs
        • Community Member Search
        • Cookies
        • Direct upload
      • Auth SDK
        • Node.js
          • Methods
        • Ruby
        • Go
        • Python
      • Usage and limits
    • Data API
      • Docs
Powered by GitBook
On this page
  • Requirements
  • Installation
  • Usage
  • Documentation
  1. APIs
  2. Headless
  3. UI Kit (Alpha)

Quick start

Requirements

  • React 16+

Installation

npm i @circleco/headless-ui-kit

yarn add @circleco/headless-ui-kit

pnpm i @circleco/headless-ui-kit

Usage

After installing the package, you need to set up two things:

  • add our CSS file to your app.

import '@circleco/headless-ui-kit/style.css'
  • add CircleProvider before using our components.

  import {
    CircleProvider
  } from "@circleco/headless-ui-kit/components/Provider";


  const getTokenFunction = () => {
    return "<MEMEBER_TOKEN>" // you must return the member api here.
  };

  return (
    <CircleProvider getTokenFunction={getTokenFunction}>
      <Component />
    </CircleProvider>
  );

Documentation

We use Storybook as our source of truth. All pieces of code you see there are perfect examples of how to use our components.

Last updated 7 months ago

https://circleco.github.io/headless-js-uikit