diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-02 05:07:03 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-02 05:07:03 +0800 |
commit | 67a2359014d933561425258ae774f7005ef52b15 (patch) | |
tree | e6f04b6a8d9e5b1daabdb01bca73a97186566466 /packages | |
parent | 136ef3827700005b50df0e99b2ee67923d80c206 (diff) | |
download | dexon-sol-tools-67a2359014d933561425258ae774f7005ef52b15.tar.gz dexon-sol-tools-67a2359014d933561425258ae774f7005ef52b15.tar.zst dexon-sol-tools-67a2359014d933561425258ae774f7005ef52b15.zip |
Add comment about link component
Diffstat (limited to 'packages')
-rw-r--r-- | packages/website/ts/components/ui/link.tsx | 5 |
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, |