Skip to content

Commit 905a954

Browse files
committed
Reformat README.md with VS Code
1 parent 414a42d commit 905a954

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,21 @@ In short, there are 3 ways to add the Material Symbols & Icons dependency:
7070
1. Use [Marella's self-hosted Material Symbols](https://www.npmjs.com/package/material-symbols).
7171

7272
First add the dependency in your build script:
73+
7374
```kotlin
7475
implementation(npm("material-symbols", "0.17.4"))
7576
```
76-
77+
7778
And then import the icons in your program. For example you can use CommonJS `require`:
79+
7880
```kotlin
7981
external fun require(module: String): dynamic
8082
fun main() {
8183
require("material-symbols/outlined.css")
8284
renderComposableInBody { App() }
8385
}
8486
```
85-
87+
8688
If you are familiar with web development and Kotlin/JS, you can depend on the stylesheet in any way that works and you prefer. For example, you can use `@JsModule` corresponding to the UMD import, or configure it as a Webpack entry point. See the following docs fore more details:
8789
1. [JavaScript modules | Kotlin Documentation](https://kotlinlang.org/docs/js-modules.html)
8890
1. [the "webpack configuration file" section in Set up a Kotlin/JS project | Kotlin Documentation](https://kotlinlang.org/docs/js-project-setup.html#webpack-configuration-file)

0 commit comments

Comments
 (0)