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
Copy file name to clipboardExpand all lines: README.md
+9-18Lines changed: 9 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,25 +1,17 @@
1
-
# Dash Component Boilerplate
1
+
# Dash Responsive Grid Layout
2
2
3
3
This repository contains the minimal set of code required to create your own custom Dash component.
4
4
5
-
To create your own Dash component:
6
-
1. Fork this repo
7
-
2. Find-and-replace:
8
-
1.`my_dash_component` with your component library name.
9
-
2.`my-dash-component` with your component library name.
10
-
3.`my-name` with your name and `my-email` with your email address
11
-
4.`my-license` with your license (e.g. `MIT`)
12
-
5. Rename the folder `my_dash_component/` with your component library name
13
-
3. Install the dependencies:
5
+
1. Install the dependencies:
14
6
```
15
7
npm install
16
8
```
17
-
4. Open up the JavaScript demo environment:
9
+
2. Open up the JavaScript demo environment:
18
10
```
19
11
npm run start
20
12
```
21
-
5. Write your component code in `src/lib/components`. There is a sample component called `ExampleComponent.react.js` that you can use for inspiration. The demo app is in `src/demo` and you will import your example component code into your demo app.
22
-
6. Test your code in a Python environment:
13
+
3. Write your component code in `src/lib/components`. There is a sample component called `ExampleComponent.react.js` that you can use for inspiration. The demo app is in `src/demo` and you will import your example component code into your demo app.
14
+
4. Test your code in a Python environment:
23
15
1. Build your code
24
16
```
25
17
npm run build:js-dev
@@ -29,7 +21,7 @@ npm run start
29
21
```
30
22
python usage.py
31
23
```
32
-
7. Create a production build and publish:
24
+
5. Create a production build and publish:
33
25
1. Build your code:
34
26
```
35
27
npm run build:js
@@ -43,20 +35,19 @@ npm run start
43
35
44
36
3. Test your tarball by copying it into a new environment and installing it locally:
0 commit comments