amotify
Version:
UI Component for React,NextJS,esbuild
28 lines (27 loc) • 1.19 kB
TypeScript
/// <reference types="react" />
import { KeyValueDict } from 'jmini';
import { List } from './List';
declare namespace Segmented {
type Tones = 'plain' | 'cloud' | 'cloud.theme' | 'cloud.mono' | 'border' | 'border.vivid' | 'bottomline';
type CoreInput = Segmented.Input & {
__sys_segmented_type: Segmented.Tones;
};
type Value<T = any> = T extends infer V ? V : string | number | boolean | KeyValueDict | void | null;
type Input<T = any> = List.Input<T>;
namespace Methods {
type Component = {
<T = any>(p: Input<T>): JSX.Element;
};
type FNs = {
Cloud: <T = any>(p: Input<Value<T>>) => JSX.Element;
CloudTheme: <T = any>(p: Input<Value<T>>) => JSX.Element;
CloudMono: <T = any>(p: Input<Value<T>>) => JSX.Element;
Border: <T = any>(p: Input<Value<T>>) => JSX.Element;
BorderVivid: <T = any>(p: Input<Value<T>>) => JSX.Element;
Bottomline: <T = any>(p: Input<Value<T>>) => JSX.Element;
};
}
type Methods = Methods.Component & Methods.FNs;
}
declare const Segmented: Segmented.Methods;
export { Segmented, Segmented as default };