Hashtag is used to display home, project and other forms of IDs. They can be used as a link.
import React from 'react' import { Hashtag } from '../../' const HashtagDefault = (props) => { return ( <div> <Hashtag text="470297" type="project" url="https://google.com" {...props} /> <br /> <br /> <Hashtag text="123456" type="home" url="https://google.com" {...props} /> <br /> <br /> <Hashtag text="456789" type="appointment" url="https://google.com" {...props} /> <br /> <br /> <Hashtag text="654321" type="default" url="https://google.com" {...props} /> </div> ) } export default HashtagDefault
Use the newWindow/new_window prop to control whether the link opens on the same page or a new tab (same page is the default behavior)
import React from 'react' import { Hashtag } from '../../' const HashtagLink = (props) => { return ( <div> <Hashtag text="Open in the same window" type="project" url="https://google.com" {...props} /> <br /> <br /> <Hashtag newWindow text="Open in a new window" type="project" url="https://google.com" {...props} /> </div> ) } export default HashtagLink
Do not use as a button.