nagelflorian/react-figma-embed

View on GitHub
src/index.js

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
// @flow

import * as React from 'react';

type Props = Object & {
  url: string,
};

const FigmaEmbed = ({ url, ...props }: Props) => {
  const src = `https://www.figma.com/embed?embed_host=astra&url=${url}`;

  return (
    <iframe height="450" width="800" src={src} allowFullScreen {...props} />
  );
};

export default FigmaEmbed;