1
0
Fork 0

wip(fs.dev): Work on mdx components

This commit is contained in:
Joost De Cock 2021-12-19 19:08:54 +01:00
parent 1b888f02f1
commit 18566b5d37
10 changed files with 78 additions and 60 deletions

View file

@ -0,0 +1,8 @@
const Figure = props => (
<figure>
<img src={props?.src} alt={props?.alt || ''} title={props?.title || ''} className="shadow-md"/>
<figcaption className="text-center italic">{props.title || 'FIXME: No title property set on this image'}</figcaption>
</figure>
)
export default Figure