Skip to content

Instantly share code, notes, and snippets.

@ehsann95
Created October 26, 2021 05:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehsann95/2ea7d623fe2a0638f2a9ec91a754cd5b to your computer and use it in GitHub Desktop.
Save ehsann95/2ea7d623fe2a0638f2a9ec91a754cd5b to your computer and use it in GitHub Desktop.
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