UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

40 lines (39 loc) 959 B
/** * @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;