entree-ui-core
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Core

Usage

import { init, getForm } from 'entree-ui-core';

init({ token: 'my-api-token' });

const form = await getForm('my-form-slug');

// get the form's name
const name = form.attributes.name;

// get a collection of questions
const collection = form.attributes.questions;

// get the first group
const { group, items } = collection[0];

If there are no groups, only one entry will be returned. The group of this entry is 'default'.

TODO: Create a proper documentation with all of the types etc.

/entree-ui-core/

    Package Sidebar

    Install

    npm i entree-ui-core

    Weekly Downloads

    0

    Version

    0.0.8

    License

    none

    Unpacked Size

    19.1 kB

    Total Files

    35

    Last publish

    Collaborators

    • andre_biel
    • timopruesse