@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
8 lines (7 loc) • 515 B
JavaScript
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { PropertiesTable, registerWidget } from '../Value';
import { Heading } from '../widgetUtils';
registerWidget('component', ({ value, doc, meta }) => {
var _a;
return (_jsxs(_Fragment, { children: [_jsx(Heading, { id: `${(_a = value.displayName) === null || _a === void 0 ? void 0 : _a.toLowerCase()}-props-api`, headingOffset: 1, children: "Props" }), _jsx(PropertiesTable, { properties: value.props })] }));
});