diff --git a/README.md b/README.md index 56e5be0..59b38fa 100644 --- a/README.md +++ b/README.md @@ -25,28 +25,15 @@ or npm install tailwindcss-stimulus-components ``` -or use directly from unpkg: - -```html - - -``` - ## Basic Usage First, you'll want to initialize StimulusJS and then you can import all the TailwindCSS components. ```javascript -// webpacker 5: app/javascript/controllers/index.js -// webpacker 6: app/packs/controllers/index.js - // Start StimulusJS import { Application } from "stimulus" -import { definitionsFromContext } from "stimulus/webpack-helpers" const application = Application.start(); -const context = require.context("controllers", true, /.js$/); -application.load(definitionsFromContext(context)); // Import and register all TailwindCSS Components import { Alert, Autosave, Dropdown, Modal, Tabs, Popover, Toggle, Slideover } from "tailwindcss-stimulus-components" @@ -580,8 +567,8 @@ Bug reports and pull requests are welcome on GitHub at