@jswork/react-iframe-mate
v1.2.3
Published
React iframe mate component.
Downloads
72
Readme
react-iframe-mate
React iframe mate component.
installation
npm install -S @jswork/react-iframe-mate
usage
- import css
@import "~@jswork/react-iframe-mate/dist/style.css";
// or use sass
@import "~@jswork/react-iframe-mate/dist/style.scss";
// customize your styles:
$react-iframe-mate-options: ()
- import js
import React from 'react';
import ReactIframeMate from '@jswork/react-iframe-mate';
import styled from 'styled-components';
const Container = styled.div`
width: 80%;
margin: 30px auto 0;
`;
export default (props: any) => {
return (
<Container>
<ReactIframeMate />
</Container>
);
};
preview
- https://afeiship.github.io/react-iframe-mate/
license
Code released under the MIT license.