Repository URL to install this package:
|
Version:
2.7.11 ▾
|
import React from 'react';
import RadioOption from './RadioOption';
import SelectOption from './SelectOption';
import SwatchOption from './SquareOption';
import { ProductOptionsProps } from './typings';
/**
* @type {Organism}
*/
export default class ProductOptions extends React.Component<ProductOptionsProps> {
static defaultProps: {
list: Readonly<{
name: string;
image: string;
isSelected: boolean;
isDisabled: boolean;
}>[];
isDropdown: boolean;
type: string;
onChange(...params: any[]): {};
};
handleClick: (event: any, item: Readonly<{}> | undefined, state: any) => void;
readonly View: typeof SwatchOption | typeof RadioOption | typeof SelectOption;
readonly attributes: {
list: import("./typings").ListItem[] | undefined;
type: string | undefined;
selectedValue: Object | undefined;
onClick: (event: any, item: Readonly<{}> | undefined, state: any) => void;
};
render(): JSX.Element;
}