Glimmer Web Components

Glimmer Web Components

Gem Version Join the chat at https://gitter.im/AndyObtiva/glimmer

This is a collection of reusable Glimmer Web Components for Glimmer DSL for Web, extracted from real Rails web applications.

Setup

gem install glimmer-web-components

Usage

Multi Checkbox Dropdown:

multi checkbox dropdown

Add the following at the top:

require 'glimmer/web/component/multi_checkbox_dropdown'

Then use the multi_checkbox_dropdown Glimmer Web Component in standard Glimmer HTML DSL code:

  ...
  markup {
    div {
      ...
      multi_checkbox_dropdown(
        values: SomePresenter::STATUS_FILTER_TYPES,
        display_values: SomePresenter::STATUS_FILTER_TYPES.map { |value| I18n.t("status.#{value}") },
        locale: I18n.locale,
        width: 190,
        translations: {
          en: {select: I18n.t('form.status_filter', locale: :en)},
          es: {select: I18n.t('form.status_filter', locale: :es)},
        },
      ) {
        selected_values <=> [@some_presenter, :status_filters]
      }
      ...
    }
  }
  ...

Help

Issues

You may submit issues on GitHub.

Click here to submit an issue.

Chat

If you need live help, try to Join the chat at https://gitter.im/AndyObtiva/glimmer

Feature Suggestions

These features have been suggested. You might see them in a future version of Glimmer. You are welcome to contribute more feature suggestions.

TODO.md

Change Log

CHANGELOG.md

Contributing

CONTRIBUTING.md

Contributors

Click here to view contributor commits.

License

MIT

Copyright (c) 2025 - Andy Maleh. See LICENSE.txt for further details.

--

Built for Glimmer (DSL Framework).