@dynamic-labs/sdk-react-core
Version:
A React SDK for implementing wallet web3 authentication and authorization to your website.
18 lines (17 loc) • 624 B
TypeScript
/// <reference types="react" />
export type OptionsSwitcherOption = {
key: string;
label?: string;
};
export type OptionsSwitcherClassNames = {
activeButtonClassName?: string;
buttonClassName?: string;
rootClassName?: string;
};
export type OptionsSwitcherProps<T> = {
onChange?: (key: T) => void;
options?: OptionsSwitcherOption[];
value?: T;
};
export type Props<T> = OptionsSwitcherClassNames & OptionsSwitcherProps<T>;
export declare const OptionsSwitcher: <T extends string>({ onChange, value, options, rootClassName, activeButtonClassName, buttonClassName, }: Props<T>) => JSX.Element;