aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-02 05:07:03 +0800
committerFabio Berger <me@fabioberger.com>2018-10-02 05:07:03 +0800
commit67a2359014d933561425258ae774f7005ef52b15 (patch)
treee6f04b6a8d9e5b1daabdb01bca73a97186566466 /packages
parent136ef3827700005b50df0e99b2ee67923d80c206 (diff)
downloaddexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.tar
dexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.tar.gz
dexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.tar.bz2
dexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.tar.lz
dexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.tar.xz
dexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.tar.zst
dexon-0x-contracts-67a2359014d933561425258ae774f7005ef52b15.zip
Add comment about link component
Diffstat (limited to 'packages')
-rw-r--r--packages/website/ts/components/ui/link.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/website/ts/components/ui/link.tsx b/packages/website/ts/components/ui/link.tsx
index 252199457..f7bca370b 100644
--- a/packages/website/ts/components/ui/link.tsx
+++ b/packages/website/ts/components/ui/link.tsx
@@ -9,6 +9,11 @@ export interface LinkProps {
className?: string;
}
+/**
+ * A generic link component which let's the developer render internal & external links, and their associated
+ * behaviors with a single link component. Many times we want a menu including both internal & external links
+ * and this abstracts away the differences of rendering both types of links.
+ */
export const Link: React.StatelessComponent<LinkProps> = ({
style,
className,