UNPKG

@workday/canvas-kit-labs-react

Version:

Canvas Kit Labs is an incubator for new and experimental components. Since we have a rather rigorous process for getting components in at a production level, it can be valuable to make them available earlier while we continuously iterate on the API/functi

17 lines (16 loc) 969 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.ExpandableTitle = void 0; const react_1 = __importDefault(require("react")); const common_1 = require("@workday/canvas-kit-react/common"); const layout_1 = require("@workday/canvas-kit-react/layout"); const tokens_1 = require("@workday/canvas-kit-react/tokens"); exports.ExpandableTitle = (0, common_1.createComponent)('div')({ displayName: 'Expandable.Title', Component: ({ children, ...elemProps }, ref, Element) => { return (react_1.default.createElement(layout_1.Box, { as: Element, ref: ref, ...tokens_1.type.levels.body.medium, fontWeight: tokens_1.type.properties.fontWeights.bold, color: tokens_1.colors.blackPepper400, padding: `2px ${tokens_1.space.zero} 2px`, textAlign: "left", ...elemProps }, children)); }, });