c98130cc08
* ui: Add the most basic workspace root in /ui * We already have a LICENSE file in the repository root * Change directory path in build scripts ui-v2 -> ui * Make yarn install flags configurable from elsewhere * Minimal workspace root makefile * Call the new docker specific target * Update yarn in the docker build image * Reconfigure the netlify target and move to the higher makefile * Move ui-v2 -> ui/packages/consul-ui * Change repo root to refleect new folder structure * Temporarily don't hoist consul-api-double * Fixup CI configuration * Fixup lint errors * Fixup Netlify target |
||
---|---|---|
.. | ||
chart.xstate.js | ||
index.hbs | ||
index.js | ||
README.mdx |
## CopyButton ```handlebars {{! inline }} <CopyButton @value={{stringToCopy}} @name="Thing" /> <CopyButton @value={{stringToCopy}} @name="Thing" > Copy me! </CopyButton> ``` ### Arguments | Argument | Type | Default | Description | | --- | --- | --- | --- | | `value` | `String` | | The string to be copied to the clipboard on click | | `name` | `String` | | The 'Name' of the string to be copied. Mainly used for giving feedback to the user | This component renders a simple button, when clicked copies the value (the `@value` attribute) to the users clipboard. A simple piece of feedback is given to the user in the form of a tooltip. When used inline an empty button is rendered. ### See - [Component Source Code](./index.js) - [Template Source Code](./index.hbs) ---