UNPKG

sober

Version:

Sober is a library of UI components designed with reference to Material You.

71 lines (70 loc) 2.23 kB
import './ripple.js'; declare const name = "s-button"; declare const props: { disabled: boolean; type: "text" | "filled" | "elevated" | "filled-tonal" | "outlined"; }; declare const Button_base: { new (): { disabled: boolean; type: "text" | "filled" | "elevated" | "filled-tonal" | "outlined"; } & {} & { addEventListener<K extends never>(type: K, listener: (this: { disabled: boolean; type: "text" | "filled" | "elevated" | "filled-tonal" | "outlined"; } & {} & /*elided*/ any & HTMLElement, ev: {}[K]) => any, options?: boolean | AddEventListenerOptions): void; removeEventListener<K extends never>(type: K, listener: (this: { disabled: boolean; type: "text" | "filled" | "elevated" | "filled-tonal" | "outlined"; } & {} & /*elided*/ any & HTMLElement, ev: {}[K]) => any, options?: boolean | EventListenerOptions): void; } & HTMLElement; readonly define: (name: string) => void; prototype: HTMLElement; }; export declare class Button extends Button_base { } declare global { interface HTMLElementTagNameMap { [name]: Button; } namespace React { namespace JSX { interface IntrinsicElements { [name]: React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & Partial<typeof props>; } } } } declare module 'vue' { import { HTMLAttributes } from 'vue'; interface GlobalComponents { [name]: new () => { /** * @deprecated **/ $props: HTMLAttributes & Partial<typeof props>; } & Button; } } declare module 'vue/jsx-runtime' { namespace JSX { interface IntrinsicElements { [name]: IntrinsicElements['div'] & Partial<typeof props>; } } } declare module 'solid-js' { namespace JSX { interface IntrinsicElements { [name]: JSX.HTMLAttributes<HTMLElement> & Partial<Props>; } } } declare module 'preact' { namespace JSX { interface IntrinsicElements { [name]: JSXInternal.HTMLAttributes<HTMLElement> & Partial<Props>; } } } export {};