ur-ui-kit-tm
Version:
unlimited robotics ui kit
39 lines (38 loc) • 1.13 kB
JavaScript
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
import { jsx as _jsx } from "react/jsx-runtime";
import { Text } from "..";
export default {
title: "Example/Text",
component: Text,
argTypes: {
text: { control: "text" },
color: { control: "color" },
customProps: {
name: "customTextStyle",
control: "object",
},
type: { options: TextTypeEnum, control: { type: "select" } },
},
};
var Template = function (args) {
return _jsx(Text, __assign({}, args), void 0);
};
export var Black = Template.bind({});
Black.args = {
text: "Any color prop that isn't considered",
color: "Black",
type: "title",
customProps: {
border: "1px solid black",
},
};