Skip to content

Commit

Permalink
Add assets instructions to readme (josefarias#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 authored Mar 4, 2024
1 parent d9da375 commit d171cb9
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ Add this line to your application's Gemfile and run `bundle install`:
gem "hotwire_combobox"
```

Only apps that use importmaps are currently supported. Suport for other JS solutions is in progress.
Then add the stylesheet to your layout:

```erb
<%= combobox_style_tag %>
```

Or add require the styles with the asset pipeline in `app/assets/stylesheets/application.css`:

```erb
*= require hotwire_combobox
```

Only apps that use importmaps are currently supported. Support for other JS solutions is in progress.

## Docs

Expand Down

0 comments on commit d171cb9

Please sign in to comment.