Frameport enables you to showcase your responsive components in real-life media queries!
Get Started GitHub npmAbout Frameport
Frameport was created with the goal of simplifying the display of responsive components in style guides and documentation. It empowers you to create iframes with your component's HTML, CSS, and JavaScript, making them act as natural viewports. It's a zero-dependency package, making it easy to integrate into your projects.
With frameport, you can create any viewport you want on a web page. This can be useful for a variety of purposes, such as:
- Showcasing the different responsive modes of your components
- Sandbox content
Frameport is incredibly easy to use. Simply add the add the required attributes or use the import with options, and frameport will do the rest. You can also wrap the viewports with the style of your choosing.
Key Features
Display responsive components effortlessly.
Create iframes that act as natural viewports.
Showcase your components in real-life media queries.
Zero dependency, making the carbon footprint as small as possible.
Get Started
Frameport makes showcasing responsive components a breeze. Start using Frameport to enhance your content and documentation today!
Get started with frameport by installing it with npm:
- Install frameport via npm:
- Choose your preferred integration method, whether it's Typescript, ESM, Script, or React.
npm i @phun-ky/frameport
It is always up to date
Speccer is always up to date, ensured to you by the author!
Used by
API Documentation
For a detailed understanding of frameport's API, refer to the API Documentation.