diff --git a/README.md b/README.md index 4a92769..28d9775 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ A [Hotwire](https://hotwired.dev/) [Stimulus](https://stimulus.hotwired.dev/) co types included MIT license - Sauce test status


@@ -35,7 +34,9 @@ The blur hash `LGF...` in this example is from https://blurha.sh/. ``` + becomes + rendered blurhash The screenshot actually uses the classes `m-10 rounded-xl shadow-xl w-3/4 h-3/4` from [tailwindcss](https://tailwindcss.com/). @@ -55,7 +56,7 @@ Register the controller in your stimulus application: ```js import { application } from "./application"; -import BlurhashController from "./blurhash_controller"; +import { BlurhashController } from "./blurhash_controller"; application.register("blurhash", BlurhashController); ``` @@ -69,9 +70,11 @@ and then use it with any element: Style it any way you want, only background-size and background-color are managed by this library. +```html
Hello world
+``` It even works on the document body: