1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-11-29 01:53:36 +01:00
Files
foris-js/src/bootstrap/CopyInput.md
2025-04-22 13:49:31 +02:00

18 lines
540 B
Markdown

CopyInput Bootstrap component contains input with a label, predefined sizes, and
structure for use in ForisForm and the "Copy" button (copy to clipboard). It can
be used with `readOnly` and `disabled` parameters, please see an example.
All additional `props` are passed to the `<input type="text">` HTML component.
```jsx
import React, { useState } from "react";
const [value, setValue] = useState("Text to appear in clipboard.");
<CopyInput
label="Copy me"
value={value}
helpText="Read the small text!"
readOnly
/>;
```