1
1
Fork 0
portfolio/repos/ember-select-light.md

36 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

2019-12-08 15:08:49 -06:00
---
2021-02-03 23:07:15 -06:00
tags: repos
2021-02-25 23:03:04 -06:00
templateEngineOverride: md
2021-02-02 22:37:07 -06:00
title: ember-select-light
2024-03-23 23:11:02 -05:00
description: The simplest Ember `<select>` there is.
2020-11-05 15:25:47 -06:00
date: 2020-11-05
2022-11-27 13:38:32 -06:00
image: /img/content/ember-select-light-tailwind.png
2024-03-25 14:11:44 -05:00
pinned: false
2019-12-08 15:08:49 -06:00
---
2020-11-05 15:25:47 -06:00
[Fork from Github](https://github.com/ember-a11y/ember-select-light)
2019-12-08 15:08:49 -06:00
2021-02-09 16:01:28 -06:00
ember-select-light is an Ember Addon focused on simplicity. Just powerful enough to offer expected baseline functionality while being easy to implement, style, and make accessible.
2019-12-08 15:08:49 -06:00
2021-02-09 16:01:28 -06:00
![ember-select-light can be easily styled with Tailwind](/img/content/ember-select-light-tailwind-animated.gif)
2019-12-08 15:08:49 -06:00
2021-02-09 16:01:28 -06:00
This addon is [Octane ready](https://emberjs.com/editions/octane/) and follows [ember-component-pattern's for how to best write a Select Element](https://emberjs-1.gitbook.io/ember-component-patterns/form-components/select-element). Additionally, it was coded completely with TDD (Test-Driven Design) so you can expect quality test coverage!
2019-12-08 15:08:49 -06:00
2020-11-05 15:25:47 -06:00
## Getting Started
2019-12-08 15:08:49 -06:00
```bash
ember install ember-select-light
```
2020-11-05 15:25:47 -06:00
### Example Usage
2019-12-08 15:08:49 -06:00
2024-03-24 23:39:30 -05:00
```htmlbars
2020-11-05 15:25:47 -06:00
<SelectLight
@value="turtle"
@options=(array "turtle" "tortoise")
@change={{action "handleChange"}} />
```
2019-12-08 15:08:49 -06:00
2021-02-09 16:01:28 -06:00
[Far more examples are available on GitHub](https://github.com/ember-a11y/ember-select-light).
2019-12-08 15:08:49 -06:00