UNPKG

@tinacms/toolkit

Version:

Tina is a lightweight but powerful toolkit for creating a site editing ui with javascript components. Tina surfaces superpowers for dev’s to create, expand on and customize a simple yet intuitive ui for editing content.

43 lines (39 loc) 870 B
/** */ import { Plugin } from '../core'; /** * Represents a Tina Cloud Config that should be accessible via the CMS. * * The purpose of these configs is to give a way to display & edit information * about TIna Cloud Configuration * cases may include: * * * Tina Cloud Project Configuration * * User Management */ export interface CloudConfigPlugin extends Plugin { __type: 'cloud-config'; text?: string; Icon: any; link: { text: string; href: string; }; } /** * An options object used to create Cloud Config Plugins. */ export interface CloudConfigOptions { name: string; text?: string; link: { text: string; href: string; }; } /** * Creates cloud config plugins. * * @param options */ export declare function createCloudConfig({ ...options }: CloudConfigOptions): CloudConfigPlugin;