ADDED: A few types for convenience
FIXED: Fixed generic types, where used type "any"
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import { ButtonHTMLAttributes } from 'react';
|
||||
import { IRippleProps } from '../ripple/ripple.types';
|
||||
|
||||
export interface ButtonLayoutProps
|
||||
extends IRippleProps,
|
||||
ButtonHTMLAttributes<HTMLButtonElement> {}
|
||||
@@ -1,25 +0,0 @@
|
||||
import { PropsWithChildren } from 'react';
|
||||
|
||||
type ToggleButtonType = {
|
||||
selected: string;
|
||||
unselected: string;
|
||||
};
|
||||
|
||||
export interface ButtonMainProps extends PropsWithChildren<any> {
|
||||
disabled?: boolean;
|
||||
variant?: 'filled' | 'outlined' | 'elevated' | 'tonal' | 'text';
|
||||
}
|
||||
|
||||
export interface FABMainProps extends PropsWithChildren<any> {
|
||||
icon: string;
|
||||
disabled?: boolean;
|
||||
size?: 'small' | 'default' | 'large' | 'extended';
|
||||
variant?: 'surface' | 'primary' | 'secondary' | 'tertiary';
|
||||
}
|
||||
|
||||
export interface IconButtonMainProps extends PropsWithChildren<any> {
|
||||
icon: string;
|
||||
toggled?: false | ToggleButtonType;
|
||||
disabled?: boolean;
|
||||
variant?: 'default' | 'filled' | 'tonal' | 'outlined';
|
||||
}
|
||||
Reference in New Issue
Block a user