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
- Add your component to the `components` folder. Use either of the existing components in there as a guide. If you're familiar with React, start with `custom-component.js`, otherwise if you are more comfortable using a tool like D3 where you manually handle updates / redraws, start with `custom-d3-component.js`.
35
-
36
-
- Any component that you put in that folder will immediately be available in the Idyll markup. Files named like `custom-component.js` can be imported as `[CustomComponent /]`.
37
-
38
-
39
-
40
-
### Learn more about existing components
41
-
42
-
All of Idyll's standard components are available [docs here](https://idyll-lang.org/docs/components).
43
-
44
-
Additionally, custom Parametric components can be found [here](https://github.com/ParametricPress/parametric-components/tree/master/src/issue-02).
45
-
46
-
### Modify existing components
47
-
48
-
To make changes to standard components, copy the source from `node_modules` to the `components` folder.
49
-
50
-
For example if you wanted to customize the `[Caption /]` component you could run `cp node_modules/parametric-components/src/issue-02/caption.js components/`.
51
-
52
-
Similarly, to modify a built-in Idyll component you can run e.g. `cp node_modules/idyll-components/src/button.js components/`.
53
-
54
-
55
-
## Video Links
56
-
57
-
* Movie trailer (Dr. Strange): https://www.youtube.com/watch?v=zTgdtmkMT2g
0 commit comments