UNPKG

@workday/canvas-kit-docs

Version:

Documentation components of Canvas Kit components

7 lines (6 loc) 730 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { ExternalHyperlink } from '@workday/canvas-kit-react/button'; import { InformationHighlight } from '@workday/canvas-kit-react/information-highlight'; export const StorybookInformationHighlight = ({ variant, emphasis, title, description, link, linkText, isExternal, }) => { return (_jsxs(InformationHighlight, { className: "sb-unstyled", variant: variant, emphasis: emphasis, children: [_jsx(InformationHighlight.Icon, {}), _jsx(InformationHighlight.Heading, { children: title }), _jsx(InformationHighlight.Body, { children: description }), _jsx(InformationHighlight.Link, { as: isExternal && ExternalHyperlink, href: link, children: linkText })] })); };