-
-
Save ehsann95/2ea7d623fe2a0638f2a9ec91a754cd5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SbEditable from 'storyblok-react'; | |
const Button = ({ data, extraClasses }) => { | |
return ( | |
<SbEditable content={data}> | |
<div | |
className={`box-border flex items-center justify-center px-6 py-3 m-0 rounded-md bg-primary w-max ${extraClasses}`} | |
> | |
<a href={data.url} className="tracking-wider text-white uppercase"> | |
{data.text} | |
</a> | |
</div> | |
</SbEditable> | |
); | |
}; | |
export default Button; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment