You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Clone the project on your computer, and install [Node](https://nodejs.org). This project also uses [nvm](https://github.com/springload/frontend-starter-kit/blob/master/docs/useful-tooling.md#nvm).
8
+
9
+
```sh
10
+
nvm install
11
+
# Then, install all project dependencies.
12
+
npm install
13
+
# Install the git hooks.
14
+
./.githooks/deploy
15
+
# Set up a `.env` file with the appropriate secrets.
16
+
touch .env
17
+
```
18
+
19
+
### Working on the project
20
+
21
+
> Everything mentioned in the installation process should already be done.
22
+
23
+
```sh
24
+
# Make sure you use the right node version.
25
+
nvm use
26
+
# Start the the development tools in watch mode.
27
+
npm run start
28
+
# Runs linting.
29
+
npm run lint
30
+
# Runs tests.
31
+
npm run test
32
+
# View other available commands with:
33
+
npm run
34
+
```
35
+
36
+
### Run the demo
37
+
38
+
> Everything mentioned in the installation process should already be done.
We strongly encourage you to write your own styles for your accordions, but we've published these two starter stylesheets to help you get up and running:
61
+
61
62
```js
62
63
// 'Minimal' theme - hide/show the AccordionBody component:
@@ -229,73 +230,21 @@ This project manages two types of Accordions, with single or multiple items open
229
230
230
231
For this type of Accordion, you will get the following `role` set up on your elements:
231
232
232
-
* Accordion: `tablist`
233
-
* AccordionItem: no specific role
234
-
* AccordionItemTitle: `tab`
235
-
* AccordionItemBody: `tabpanel`
233
+
*Accordion: `tablist`
234
+
*AccordionItem: no specific role
235
+
*AccordionItemTitle: `tab`
236
+
*AccordionItemBody: `tabpanel`
236
237
237
238
#### Multiple items
238
239
239
240
For this type of Accordion, you will get the following `role` set up on your elements:
240
241
241
242
> Use this with with props `accordion` set to `false` on `Accordion`.
242
243
243
-
* Accordion: no specific role
244
-
* AccordionItem: no specific role
245
-
* AccordionItemTitle: `button`
246
-
* AccordionItemBody: no specific role
247
-
248
-
## Development
249
-
250
-
### Install
251
-
252
-
> Clone the project on your computer, and install [Node](https://nodejs.org). This project also uses [nvm](https://github.com/springload/frontend-starter-kit/blob/master/docs/useful-tooling.md#nvm).
253
-
254
-
```sh
255
-
nvm install
256
-
# Then, install all project dependencies.
257
-
npm install
258
-
# Install the git hooks.
259
-
./.githooks/deploy
260
-
# Set up a `.env` file with the appropriate secrets.
261
-
touch .env
262
-
```
263
-
264
-
### Working on the project
265
-
266
-
> Everything mentioned in the installation process should already be done.
267
-
268
-
```sh
269
-
# Make sure you use the right node version.
270
-
nvm use
271
-
# Start the the development tools in watch mode.
272
-
npm run start
273
-
# Runs linting.
274
-
npm run lint
275
-
# Runs tests.
276
-
npm run test
277
-
# View other available commands with:
278
-
npm run
279
-
```
280
-
281
-
### Run the demo
282
-
283
-
> Everything mentioned in the installation process should already be done.
0 commit comments