diff --git a/lib/hologram/ui/link.ex b/lib/hologram/ui/link.ex index b0e8d3862..68a294a33 100644 --- a/lib/hologram/ui/link.ex +++ b/lib/hologram/ui/link.ex @@ -2,6 +2,7 @@ defmodule Hologram.UI.Link do use Hologram.Component prop :class, :string, default: nil + prop :rel, :string, default: nil prop :style, :string, default: nil prop :to, [:module, :string, :tuple] @@ -11,6 +12,7 @@ defmodule Hologram.UI.Link do my anchor text' end + test "with rel prop" do + assert render_markup(~H'my anchor text') == + ~s'my anchor text' + end + test "with style prop" do assert render_markup(~H'my anchor text') == ~s'my anchor text'