Installing Material Components and Initializing settings
Installing Material Components
Material Components is hosted on JSDelivr this means that you can easily import and use material Components without the downloads or install.
CSS
JavaScript (Elements and Functions)
Initializing Settings
Add the following import module to your main JS file.
This initializes the main editor, where a user can position and resize elements.
item
Description
Input
darkTheme
Sets the default theme of the site
Boolean
themeColour
Sets the theme color used to generate a color
Hex String
themeStyle
What colour pallete to follow
Sketch or Google
Note: It is recommended to keep the themeColour and themeStyle properties left out when loading M3 Components from an iframe.
Last updated