Skip to content

poying/elm-shadow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

elm-shadow

elm-shadow brings ShadowDom benefits to Elm developers.

Example - Style encapsulation

import Shadow exposing (shadow)


styleSource : String
styleSource =
  """
  :host {
    box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  }

  span {
    color: red;
  }
  """


view : Int -> Html
view num =
  shadow (div [] [])
    [ span [] [text num]
    , style [] [text styleSource]
    ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published