mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
11 lines
363 B
Clojure
11 lines
363 B
Clojure
(ns uxbox.ui.navigation
|
|
(:require [sablono.core :as html :refer-macros [html]]
|
|
[goog.events :as events]
|
|
[uxbox.ui.dom :as dom]))
|
|
|
|
(defn link
|
|
"Given an href and a component, return a link component that will navigate
|
|
to the given URI withour reloading the page."
|
|
[href component]
|
|
(html
|
|
[:a {:href (str "/#" href)} component]))
|