1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2025-12-03 02:33:36 +01:00

docs: Fix code snippets syntax highlighting & some refactoring

This commit is contained in:
Aleksandr Gumroian
2025-04-17 17:13:54 +02:00
parent d6fda7d732
commit 69b1b38202
18 changed files with 171 additions and 160 deletions

View File

@@ -3,7 +3,7 @@ structure for using in foris forms.
All additional `props` are passed to the `<input type="file">` HTML component.
```js
```jsx
import { useState } from "react";
const [files, setFiles] = useState([]);
@@ -23,7 +23,7 @@ const label = files.length === 1 ? files[0].name : "Choose file";
### FileInput with multiple files
```js
```jsx
import { useState } from "react";
const [files, setFiles] = useState([]);