UNPKG

@airplane/views

Version:

A React library for building Airplane views. Views components are optimized in style and functionality to produce internal apps that are easy to build and maintain.

24 lines (23 loc) 669 B
import React from "react"; import { CommonLayoutProps } from "../../components/layout/layout.types"; import { CommonStylingProps } from "../../components/styling.types"; export type CalloutVariant = "info" | "success" | "warning" | "error" | "neutral"; export type CalloutProps = { /** * Specify a custom icon or null to hide the icon. */ icon?: React.ReactNode | null; /** * Callout appearance. * @default info */ variant?: CalloutVariant; /** * Callout title. */ title?: React.ReactNode; /** * Callout description. */ children?: React.ReactNode; } & CommonLayoutProps & CommonStylingProps;