# \[Package\] Elm-Cursor

**URL:** <https://discourse.elm-lang.org/t/package-elm-cursor/7294>\
**Category:** Show and Tell\
**Created:** [April 26, 2021, 11:56am UTC](https://discourse.elm-lang.org/t/package-elm-cursor/7294 "2021-04-26T11:56:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/paulh/32/5022_2.png) [@paulh](https://discourse.elm-lang.org/u/paulh)\
**Post date:** [April 26, 2021, 11:56am UTC](https://discourse.elm-lang.org/t/package-elm-cursor/7294/1 "2021-04-26T11:56:32Z")

</div>

Hi all,

If you’re anything like me then you’d rather not have to type more than is necessary, and you can’t remember everything…

Repeatedly typing

```elm
import Html.Attributes as Attr

El.htmlAttribute <|
    Attr.style "cursor" "some value"

```

just to change the type of cursor displayed was becoming tiresome so I created my own module to ease the [admittedly minor] workload, and then decided it might be useful to others, so I’ve just released [Elm-Cursor](https://package.elm-lang.org/packages/phollyer/elm-cursor/latest/).

It supports [Elm-UI](https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/) and the core Html package, and provides a couple of benefits that some might find useful:

- Less typing (mainly when using Elm-UI)
- Editor hints when using a Language Server such as [elm-language-server](https://github.com/elm-tooling/elm-language-server)
- No risk of typos in the strings

Hope it’s useful to some.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [May 6, 2021, 11:56am UTC](https://discourse.elm-lang.org/t/package-elm-cursor/7294/2 "2021-05-06T11:56:50Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
