{"id":13877967,"url":"https://github.com/heyvito/lucide-rails","last_synced_at":"2025-05-16T11:04:28.593Z","repository":{"id":60663442,"uuid":"544577200","full_name":"heyvito/lucide-rails","owner":"heyvito","description":"Rails Helper for Lucide Icons","archived":false,"fork":false,"pushed_at":"2025-02-06T13:52:15.000Z","size":1053,"stargazers_count":87,"open_issues_count":3,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-12T08:18:25.426Z","etag":null,"topics":["lucide-icon","rails","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heyvito.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-02T20:26:11.000Z","updated_at":"2025-03-31T18:23:26.000Z","dependencies_parsed_at":"2025-03-01T00:14:30.344Z","dependency_job_id":null,"html_url":"https://github.com/heyvito/lucide-rails","commit_stats":{"total_commits":29,"total_committers":6,"mean_commits":4.833333333333333,"dds":"0.24137931034482762","last_synced_commit":"f31ba6a17a1b810a5d35261b0760d16771c5ac3a"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Flucide-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Flucide-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Flucide-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heyvito%2Flucide-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heyvito","download_url":"https://codeload.github.com/heyvito/lucide-rails/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lucide-icon","rails","ruby"],"created_at":"2024-08-06T08:01:36.243Z","updated_at":"2025-05-16T11:04:27.261Z","avatar_url":"https://github.com/heyvito.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# lucide-rails\n\n`lucide-rails` provides a view helper for using [Lucide icons](https://lucide.dev)\non Rails applications\n\n## Installation\n\nInstall the gem and add to the application's Gemfile by executing:\n```\n    $ bundle add lucide-rails\n```\n\nIf bundler is not being used to manage dependencies, install the gem by executing:\n\n```\n    $ gem install lucide-rails\n```\n\n## Usage\n\n### Quickstart\n\nThe gem default options should be enough for most applications. Simply add it to\nyour `Gemfile`, and, in any view:\n\n```erb\n\u003c%= lucide_icon('accessibility') %\u003e\n```\n\nWhich renders:\n\n```html\n\u003csvg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"\u003e\u003ccircle cx=\"16\" cy=\"4\" r=\"1\"\u003e\u003c/circle\u003e\u003cpath d=\"m18 19 1-7-5.87.94\"\u003e\u003c/path\u003e\u003cpath d=\"m5 8 3-3 5.5 3-2.21 3.1\"\u003e\u003c/path\u003e\u003cpath d=\"M4.24 14.48c-.19.58-.27 1.2-.23 1.84a5 5 0 0 0 5.31 4.67c.65-.04 1.25-.2 1.8-.46\"\u003e\u003c/path\u003e\u003cpath d=\"M13.76 17.52c.19-.58.27-1.2.23-1.84a5 5 0 0 0-5.31-4.67c-.65.04-1.25.2-1.8.46\"\u003e\u003c/path\u003e\u003c/svg\u003e\n```\n\n### Providing Extra Attributes to a Single Icon\n\nTo provide extra attributes to a single SVG, pass them through the helper:\n\n```erb\n\u003c%= lucide_icon('accessibility', 'extra-attr' =\u003e 'test') %\u003e\n```\n\nWhich yields the following HTML:\n\n```html\n\u003csvg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" extra-attr=\"test\"\u003e\u003ccircle cx=\"16\" cy=\"4\" r=\"1\"\u003e\u003c/circle\u003e\u003cpath d=\"m18 19 1-7-5.87.94\"\u003e\u003c/path\u003e\u003cpath d=\"m5 8 3-3 5.5 3-2.21 3.1\"\u003e\u003c/path\u003e\u003cpath d=\"M4.24 14.48c-.19.58-.27 1.2-.23 1.84a5 5 0 0 0 5.31 4.67c.65-.04 1.25-.2 1.8-.46\"\u003e\u003c/path\u003e\u003cpath d=\"M13.76 17.52c.19-.58.27-1.2.23-1.84a5 5 0 0 0-5.31-4.67c-.65.04-1.25.2-1.8.46\"\u003e\u003c/path\u003e\u003c/svg\u003e\n```\n\n### Providing Extra Attributes to All Icons\n\nIn case an application needs to add an extra attribute on every icon output by\nthis library, create a new initializer, and use `LucideRails.default_options=`:\n\n```ruby\n# config/initializers/lucide_rails.rb\nLucideRails.default_options = LucideRails.default_options.merge(\n  'class' =\u003e 'lucide-icon',\n  'some-extra-attr' =\u003e 'some-other-value',\n)\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run\n`bundle exec rspec` to run the tests. You can also run `bundle exec bin/console`\nfor an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`.\nTo release a new version, update the version number in `version.rb`, and then\nrun `bundle exec rake release`, which will create a git tag for the version,\npush git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n### Updating Bundled Icons\n\nTo sync the library with the official icon repository, and regenerate all files\nfrom `icons/`, use `bundle exec bin/fetch-icons`.\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/heyvito/lucide-rails.\nThis project is intended to be a safe, welcoming space for collaboration, and\ncontributors are expected to adhere to the [code of conduct](https://github.com/heyvito/lucide-rails/blob/master/CODE_OF_CONDUCT.md).\n\n## Code of Conduct\n\nEveryone interacting in the Lucide::Rails project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/heyvito/lucide-rails/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\n```\nThe MIT License (MIT)\n\nCopyright (c) 2022-2024 Vito Sartori\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyvito%2Flucide-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheyvito%2Flucide-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheyvito%2Flucide-rails/lists"}