@intility/bifrost-react
Version:
React library for Intility's design system, Bifrost.
41 lines (40 loc) • 1.48 kB
TypeScript
export type * from "./Button.js";
export type * from "./Button.Expand.js";
export type * from "./Button.Group.js";
/**
* Clickable button
*
* @see https://bifrost.intility.com/react/button
*
* @example
* <Button>Basic</Button>
* <Button variant='filled'>Filled</Button>
* <Button variant='flat'>Flat</Button>
* <Button onClick={() => alert("Hello, world!")}>Click me</Button>
*/
declare const _default: import("react").ForwardRefExoticComponent<import("./Button.js").ButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
/**
* Wrapper for multiple buttons
*
* @see https://bifrost.intility.com/react/button#buttongroup
*
* @example
* <Button.Group>
* <Button active>Rock</Button>
* <Button>Paper</Button>
* <Button>Scissors</Button>
* </Button.Group>
*/
Group: import("react").ForwardRefExoticComponent<import("./Button.Group.js").ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
/** Button with rotating caret icon, useful for toggling expandable content
*
* @see https://bifrost.intility.com/react/button#buttonexpand
*
* @example
* <Button.Expand open={openState} onClick={() => setOpenState(!openState)}>
* Toggle
* </Button.Expand>
*/
Expand: import("react").ForwardRefExoticComponent<import("./Button.Expand.js").ButtonExpandProps & import("react").RefAttributes<HTMLButtonElement>>;
};
export default _default;