@watheia/docs.ui.copy-box
Version:
30 lines • 1.32 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.examples = exports.labels = void 0;
const react_1 = __importDefault(require("react"));
const docs_theme_theme_compositions_1 = require("@watheia/docs.theme.theme-compositions");
const copy_box_1 = require("./copy-box");
exports.labels = ["react", "ui-component"];
exports.examples = [
{
scope: {
CopyBox: copy_box_1.CopyBox,
ThemeCompositions: docs_theme_theme_compositions_1.ThemeCompositions
},
title: "Using the CopyBox component.",
description: (react_1.default.createElement(react_1.default.Fragment, null,
react_1.default.createElement("p", null, "CopyBox copies its (string) children to the clipboard."),
react_1.default.createElement("p", null, "It should not be used for more than a single line. For code-snippets, use the CodeSnippet component, instead."))),
code: `
<ThemeCompositions>
<CopyBox style={{width: "600px"}} >
npm install @watheia/docs.ui.copy-box
</CopyBox>
</ThemeCompositions>
`
}
];
//# sourceMappingURL=copy-box.docs.js.map