@workday/canvas-kit-docs
Version:
Documentation components of Canvas Kit components
7 lines (6 loc) • 473 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { registerWidget, Value } from '../Value';
import { RenderContext } from '../widgetUtils';
registerWidget('tuple', ({ value }) => {
return (_jsxs(RenderContext.Provider, { value: "inline", children: [_jsx("span", { className: "token punctuation", children: "[" }), value.value.map((v, i) => (_jsx(Value, { value: v }, i))), _jsx("span", { className: "token punctuation", children: "]" })] }));
});