UNPKG

tinacms

Version:

[![GitHub license](https://img.shields.io/github/license/tinacms/tinacms?color=blue)](https://github.com/tinacms/tinacms/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/tinacms.svg?style=flat)](https://www.npmjs.com/package/tinacms) [![Bui

24 lines (23 loc) 587 B
import * as React from 'react'; type Option = { value: string; label?: string; icon?: React.ComponentType<any>; }; interface ButtonToggleFieldProps { label?: string; name: string; component: string; options: (Option | string)[]; direction?: 'horizontal' | 'vertical'; } export interface ButtonToggleProps { name: string; input: any; field: ButtonToggleFieldProps; disabled?: boolean; options?: (Option | string)[]; direction?: 'horizontal' | 'vertical'; } export declare const ButtonToggle: React.FC<ButtonToggleProps>; export {};