{"id":29441608,"url":"https://github.com/samuelmc/foundation-select","last_synced_at":"2025-07-13T14:02:49.388Z","repository":{"id":58244024,"uuid":"66178731","full_name":"samuelmc/foundation-select","owner":"samuelmc","description":"Select plugin for Foundation sites 6","archived":false,"fork":false,"pushed_at":"2018-04-29T21:57:18.000Z","size":123,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-12T03:54:27.413Z","etag":null,"topics":["bower","custom-select","custom-styling","foundation","scss","select"],"latest_commit_sha":null,"homepage":"https://samuelmc.github.io/","language":"CSS","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/samuelmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-21T03:06:18.000Z","updated_at":"2023-01-06T16:04:39.000Z","dependencies_parsed_at":"2022-08-31T04:40:28.672Z","dependency_job_id":null,"html_url":"https://github.com/samuelmc/foundation-select","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/samuelmc/foundation-select","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmc%2Ffoundation-select","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmc%2Ffoundation-select/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmc%2Ffoundation-select/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmc%2Ffoundation-select/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samuelmc","download_url":"https://codeload.github.com/samuelmc/foundation-select/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samuelmc%2Ffoundation-select/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264940074,"owners_count":23686236,"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":["bower","custom-select","custom-styling","foundation","scss","select"],"created_at":"2025-07-13T14:02:07.166Z","updated_at":"2025-07-13T14:02:49.362Z","avatar_url":"https://github.com/samuelmc.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# foundation-select\n\nSelect plugin for Foundation sites 6\n\n[![Travis](https://img.shields.io/travis/samuelmc/foundation-select.svg)](https://travis-ci.org/samuelmc/foundation-select)\n\n## Installation\n\n**With bower:**\n\n[![Bower](https://img.shields.io/bower/v/foundation-select.svg)]()\n\n```shell\nbower install --save foundation-select\n```\n\nAdd all nessesary files to your html. This plugin only works with foundation and requires foundation-perfect-scrollbar and font-awesome.\n```html\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/foundation-sites/dist/css/foundation.min.css\"\u003e \n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/foundation-perfect-scrollbar/dist/css/foundation-perfect-scrollbar.min.css\"\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/foundation-select/dist/css/foundation-select.min.css\"\u003e\n\u003clink rel=\"stylesheet\" type=\"text/css\" href=\"bower_components/font-awesome/css/font-awesome.min.css\"\u003e\n...\n\u003cscript src=\"bower_components/jquery/dist/jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/what-input/dist/what-input.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/foundation-sites/dist/js/foundation.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/perfect-scrollbar/js/perfect-scrollbar.jquery.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/foundation-perfect-scrollbar/dist/js/foundation.perfectScrollbar.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"bower_components/foundation-select/dist/js/foundation.select.min.js\"\u003e\u003c/script\u003e\n```\n\nIf you are using foundation's scss with gulp, the best way add the styles is by adding it to the sass paths in your gulpfile.\n```js\nvar gulp = require('gulp');\nvar $    = require('gulp-load-plugins')();\n\nvar sassPaths = [\n    'bower_components/normalize.scss/sass',\n    'bower_components/foundation-sites/scss',\n    'bower_components/foundation-perfect-scrollbar/src/scss/plugin',\n    'bower_components/foundation-select/src/scss/plugin',\n    'bower_components/motion-ui/src',\n    'bower_components/font-awesome/scss'\n];\n\ngulp.task('sass', function() {\n    ...\n\n```\n\nThen add these settings to your _settings.scss file for customization\n```scss\n$select-background: $input-background !default;\n$select-border: $input-border !default;\n$select-color: $input-color !default;\n$select-dropdown-height: rem-calc(300);\n```\n## Usage\n\nJust add a data-select attribute to your select tag.\n\n```html\n\u003cselect data-select\u003e\n    \u003coption value=\"\"\u003ePlaceholder\u003coption\u003e\n    \u003coption value=\"0\"\u003eOption 1\u003coption\u003e\n    \u003coption value=\"1\"\u003eOption 2\u003coption\u003e\n    ...\n\u003c/select\u003e\n```\n\nRun foundation and it will automaticaly initialize all the selects\n```js\n$(document).foundation();\n```\n\n**Plugin options**\n\n|Name     |Default  |Descrition|\n|---------|---------|----------|\n|data-icon-class|'fa-caret-down'|The FontAwesome class for the select triangle icon.|\n|data-placeholder|''|Custom placeholder.|\n|data-value|''|The default value of the select.|\n|data-mousewheel|true|If set to true scrolling over the element will change the value if the element has focus.|\n\n## Licence\n[![MIT Licence](https://img.shields.io/badge/Licence-MIT-blue.svg)](https://opensource.org/licenses/mit-license.php)\n\n\u0026copy; Samuel Moncarey\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmc%2Ffoundation-select","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamuelmc%2Ffoundation-select","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamuelmc%2Ffoundation-select/lists"}