NoRedInk/noredink-ui/7.14.1

NOTE: the latest version is 35.9.3

Nri.Ui.Alert.V4

Changes from V3:

  • Changes the error font color from purpleDark to purple
  • Adds somethingWentWrong error for displaying stacktraces

About:

UI components that highlight information to the user.

error : String -> Html msg

import Nri.Ui.Alert.V4 as Alert

view =
    Alert.error "Some **awesome** message!"
success : String -> Html msg

import Nri.Ui.Alert.V4 as Alert

view =
    Alert.success "Some **awesome** message!"
tip : String -> Html msg

import Nri.Ui.Alert.V4 as Alert

view =
    Alert.tip "Some **awesome** message!"
warning : String -> Html msg

import Nri.Ui.Alert.V4 as Alert

view =
    Alert.warning "Some **awesome** message!"
somethingWentWrong : String -> Html msg

Modules