← all modules

Std.Ui.Border

Std.Ui.Border
  Std.Ui.Border — typed border-* + shadow attribute helpers for `Std.Ui`.

Values
  activeColor : Color -> Attribute msg
      Border colour while the element is being clicked / tapped.
  color : Color -> Attribute msg
  dashed : Attribute msg
  dotted : Attribute msg
  focusColor : Color -> Attribute msg
      `focusColor` targets `:focus-visible` (safer default — only
  focusVisibleColor : Color -> Attribute msg
      Explicit `:focus-visible` alias.
  glow : Int -> Color -> Attribute msg
      Soft outer "glow" shadow — convenience wrapper that fixes
  hoverColor : Color -> Attribute msg
      Hover-state border swaps. Hover rules are auto-gated behind
  hoverRounded : Int -> Attribute msg
      Corner radius on hover (in px). Useful for "pill-on-hover"
  hoverWidth : Int -> Attribute msg
      Border thickness on hover — uniform px. Mirrors `width`.
  innerShadow : { offsetX : Int , offsetY : Int , blur : Int , spread : Int , color : Color } -> Attribute msg
      Inset (inner) shadow with the same shape as `shadow`. Renders
  rounded : Int -> Attribute msg
      Corner radius (in px).
  shadow : { offsetX : Int , offsetY : Int , blur : Int , spread : Int , color : Color } -> Attribute msg
      Box shadow with an offset (px), blur radius (px), spread (px), and
  solid : Attribute msg
      Border line style. Default (when borderWidth is set without an
  width : Int -> Attribute msg
      Uniform border width (in px).
  widthEach : { top : Int , right : Int , bottom : Int , left : Int } -> Attribute msg
      Per-side border width: top, right, bottom, left (in px).