wip(fs.dev): Work on mdx components
This commit is contained in:
parent
1b888f02f1
commit
18566b5d37
10 changed files with 78 additions and 60 deletions
8
packages/freesewing.shared/components/mdx/figure.js
Normal file
8
packages/freesewing.shared/components/mdx/figure.js
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue