UNPKG

@smart-react-components/ui

Version:
27 lines (26 loc) 1.06 kB
/// <reference types="react" /> import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props'; import { ContentElement, JSXElementProps, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types'; import { FormValue } from '../types'; export interface GenericProps extends Partial<ResponsiveProp<'size', SizeProp>>, IntrinsicStyledCoreProps { active: FormValue | FormValue[]; children: JSX.Element | JSX.Element[]; elementProps?: JSXElementProps; hasBorder?: boolean; hasHover?: boolean; hasWaveEffect?: boolean; isBlock?: boolean; isDisabled?: boolean; isRequired?: boolean; isOutline?: boolean; isSoft?: boolean; label?: ContentElement; leftAddon?: ContentElement; leftIcon?: ContentElement; palette?: PaletteProp; rightAddon?: ContentElement; rightIcon?: ContentElement; shape?: ShapeProp; setActive: SetState<FormValue | FormValue[]>; waveEffectPalette?: PaletteProp; }