mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-25 06:33:09 +03:00
Merge remote-tracking branch 'origin/master' into lab/readme--replace-old-usages
This commit is contained in:
commit
6f110da8f3
2
elm.json
2
elm.json
@ -3,7 +3,7 @@
|
||||
"name": "NoRedInk/noredink-ui",
|
||||
"summary": "UI Widgets we use at NRI",
|
||||
"license": "BSD-3-Clause",
|
||||
"version": "6.30.0",
|
||||
"version": "6.31.0",
|
||||
"exposed-modules": [
|
||||
"Nri.Ui.Alert.V2",
|
||||
"Nri.Ui.Alert.V3",
|
||||
|
@ -3,7 +3,7 @@ module Nri.Ui.Button.V9 exposing
|
||||
, Attribute
|
||||
, icon, custom
|
||||
, onClick
|
||||
, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||
, href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||
, small, medium, large
|
||||
, exactWidth, unboundedWidth, fillContainerWidth
|
||||
, primary, secondary, danger, premium
|
||||
@ -30,7 +30,7 @@ module Nri.Ui.Button.V9 exposing
|
||||
## Behavior
|
||||
|
||||
@docs onClick
|
||||
@docs linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||
@docs href, linkSpa, linkExternal, linkWithMethod, linkWithTracking, linkExternalWithTracking
|
||||
|
||||
|
||||
## Sizing
|
||||
@ -161,6 +161,12 @@ type Link
|
||||
| ExternalWithTracking
|
||||
|
||||
|
||||
{-| -}
|
||||
href : String -> Attribute msg
|
||||
href url =
|
||||
set (\attributes -> { attributes | url = url })
|
||||
|
||||
|
||||
{-| Use this link for routing within a single page app.
|
||||
|
||||
This will make a normal <a> tag, but change the Events.onClick behavior to avoid reloading the page.
|
||||
|
Loading…
Reference in New Issue
Block a user