2017-01-18 10:37:37 +03:00
|
|
|
import * as React from "react";
|
|
|
|
import ReactToolbox from "../index";
|
|
|
|
import { ButtonBaseProps, ButtonTheme } from './base';
|
|
|
|
|
|
|
|
export interface BrowseButtonTheme extends ButtonTheme { }
|
|
|
|
|
|
|
|
export interface BrowseButtonProps extends ButtonBaseProps {
|
|
|
|
/**
|
|
|
|
* If true, the button will have a flat look.
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
flat?: boolean;
|
|
|
|
/**
|
|
|
|
* If true, the button will have a floating look.
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
floating?: boolean;
|
|
|
|
/**
|
|
|
|
* Creates a link for the button.
|
|
|
|
*/
|
|
|
|
href?: string;
|
|
|
|
/**
|
|
|
|
* The text string to use for the name of the button.
|
|
|
|
*/
|
|
|
|
label?: string;
|
|
|
|
/**
|
|
|
|
* To be used with floating button. If true, the button will be smaller.
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
mini?: boolean;
|
|
|
|
/**
|
|
|
|
* If true, the button will have a raised look.
|
|
|
|
* @default false
|
|
|
|
*/
|
|
|
|
raised?: boolean;
|
|
|
|
/**
|
|
|
|
* Classnames object defining the component style.
|
|
|
|
*/
|
|
|
|
theme?: BrowseButtonTheme;
|
2017-12-20 16:52:10 +03:00
|
|
|
|
|
|
|
onChange?: Function;
|
2017-01-18 10:37:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
export class BrowseButton extends React.Component<BrowseButtonProps, {}> { }
|