0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-26 00:19:07 -05:00
penpot/frontend/uxbox/ui/navigation.cljs

12 lines
363 B
Text
Raw Normal View History

2015-06-18 19:35:50 +02:00
(ns uxbox.ui.navigation
2015-12-16 11:55:24 +02:00
(:require [sablono.core :as html :refer-macros [html]]
[goog.events :as events]
[uxbox.ui.dom :as dom]))
2015-06-18 19:35:50 +02:00
(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]
2015-12-16 11:55:24 +02:00
(html
[:a {:href (str "/#" href)} component]))