UNPKG

@workday/canvas-kit-react

Version:

The parent module that contains all Workday Canvas Kit React components

16 lines (15 loc) 771 B
import { jsx as _jsx } from "react/jsx-runtime"; import { createSubcomponent } from '@workday/canvas-kit-react/common'; import { mergeStyles } from '@workday/canvas-kit-react/layout'; import { createStencil } from '@workday/canvas-kit-styling'; import { useBannerLabel, useBannerModel } from './hooks'; export const bannerLabelStencil = createStencil({ base: { name: "1xihdw", styles: "box-sizing:border-box;display:flex;flex:1 1 0%;" } }, "banner-label-416ec4"); export const BannerLabel = createSubcomponent('div')({ displayName: 'Banner.Label', modelHook: useBannerModel, elemPropsHook: useBannerLabel, })(({ children, ...elemProps }, Element) => { return _jsx(Element, { ...mergeStyles(elemProps, bannerLabelStencil()), children: children }); });