jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
40 lines (39 loc) • 959 B
TypeScript
/**
* @file index.tsx
*
* @fileoverview An action boxed in a Box component together with an icon.
* The component has 2 "slots", content and action.
*/
import React from 'react';
export interface BoxActionProps {
/**
* Icon to show on the box.
*/
icon?: React.ReactNode;
/**
* Icon title.
*/
iconTitle?: string;
/**
* Color of the icon.
*/
iconColor?: string;
/**
* OnClick even handler.
*/
onClick?: any;
/**
* Content to show inside the box (text).
*/
children: React.ReactNode;
/**
* The call to action text.
*/
actionText: React.ReactNode;
}
/**
* A box action can be used to show contents and a call to action inside a box. Useful for empty
* panes and other call to action boxes.
*/
export declare const BoxAction: ({ onClick, icon, iconTitle, iconColor, children, actionText }: BoxActionProps) => JSX.Element;
export default BoxAction;