1.0.8 • Published 4 months ago

@axquired24/mobile-preview v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Mobile Preview - React UI Library

Simple mobile preview popup to represent our mobile webview/SPA

Screenshot

Usage:

    npm install @axquired24/mobile-preview

In your jsx file:

    import { MobilePreview } from '@axquired24/mobile-preview';
    import { useState } from 'react';

    const AxPack = () => {
        const [viewLink, setViewLink] = useState("https://yoursite.com");
        const onChangeInput = (e) => {
            setViewLink(e.target.value)
        }
        return (
            <div style={{padding: "2rem"}}>
            <div>Paste Link Below</div>
            <div>
            <input 
                className="px-1 py-2 border border-gray-600 rounded-md"
                type="text" name="viewUrl" id="viewUrl" onChange={onChangeInput} />
            </div>
            <MobilePreview viewLink={viewLink} id='previewLinks'></MobilePreview>
            </div>
        );
    }

    export default AxPack;
1.0.8

4 months ago

1.0.7

4 months ago

1.0.6

4 months ago

1.0.4

4 months ago

1.0.3

4 months ago

1.0.2

4 months ago

1.0.1

4 months ago

1.0.0

4 months ago