xxxxxxxxxx
1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
<meta charset="utf-8" />
5
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6
<meta name="viewport" content="width=device-width, initial-scale=1" />
7
<meta name="theme-color" content="#000000" />
8
<meta
9
name="description"
10
content="Web site created using create-react-app"
11
/>
12
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13
<link
14
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
15
rel="stylesheet"
16
/>
17
<link
18
href="https://use.fontawesome.com/releases/v5.15.1/css/all.css"
19
rel="stylesheet"
20
/>
21
22
<!--
23
manifest.json provides metadata used when your web app is installed on a
24
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
25
-->
26
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
27
<!--
28
Notice the use of %PUBLIC_URL% in the tags above.
29
It will be replaced with the URL of the `public` folder during the build.
30
Only files inside the `public` folder can be referenced from the HTML.
31
32
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
33
work correctly both with client-side routing and a non-root public URL.
34
Learn how to configure a non-root public URL by running `npm run build`.
35
-->
36
<title>MDBReact5 Template App</title>
37
</head>
38
<body>
39
<noscript>You need to enable JavaScript to run this app.</noscript>
40
<div id="root"></div>
41
<!--
42
This HTML file is a template.
43
If you open it directly in the browser, you will see an empty page.
44
45
You can add webfonts, meta tags, or analytics to this file.
46
The build step will place the bundled scripts into the <body> tag.
47
48
To begin the development, run `npm start` or `yarn start`.
49
To create a production bundle, use `npm run build` or `yarn build`.
50
-->
51
</body>
52
</html>
53
xxxxxxxxxx
1
body {
2
margin: 0;
3
font-family: Roboto, Helvetica, Arial, sans-serif;
4
-webkit-font-smoothing: antialiased;
5
-moz-osx-font-smoothing: grayscale;
6
}
7
8
code {
9
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
10
monospace;
11
}
12
xxxxxxxxxx
1
import React from 'react';
2
import { MDBBtn, MDBContainer, MDBAccordion, MDBAccordionItem } from 'mdb-react-ui-kit';
3
4
function App() {
5
return (
6
<MDBContainer fluid>
7
<MDBAccordion initialActive='accordionCollapse1'>
8
<MDBAccordionItem collapseId='accordionCollapse1' headerTitle='Accordion Item #1'>
9
<strong>This is the first item's accordion body.</strong> It is shown by default, until the collapse
10
plugin adds the appropriate classes that we use to style each element. These classes control the overall
11
appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with
12
custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go
13
within the <code>.accordion-body</code>, though the transition does limit overflow.
14
</MDBAccordionItem>
15
<MDBAccordionItem collapseId='accordionCollapse2' headerTitle='Accordion Item #2'>
16
<strong>This is the second item's accordion body.</strong> It is hidden by default, until the collapse
17
plugin adds the appropriate classes that we use to style each element. These classes control the overall
18
appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with
19
custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go
20
within the <code>.accordion-body</code>, though the transition does limit overflow.
21
</MDBAccordionItem>
22
<MDBAccordionItem collapseId='accordionCollapse3' headerTitle='Accordion Item #3'>
23
<strong>This is the third item's accordion body.</strong> It is hidden by default, until the collapse
24
plugin adds the appropriate classes that we use to style each element. These classes control the overall
25
appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with
26
custom CSS or overriding our default variables. It's also worth noting that just about any HTML can go
27
within the <code>.accordion-body</code>, though the transition does limit overflow.
28
</MDBAccordionItem>
29
</MDBAccordion>
30
31
</MDBContainer>
32
);
33
}
34
35
export default App;
36
Console errors: 0