Resources
Desktop app
Marketplace
Community
Developers
Wallpapers
Meetups
Company
Security
Careers
Report
Status
Legal
Blog
Creators
Program
Payouts
Experts
Awards
Events
Brand
Compare
Squarespace
Wordpress
Unbounce
Webflow
Figma
Wix
Solutions
Figma to HTML
Website builder
Portfolio maker
Landing pages
UI/UX design
No-code
Socials
Instagram
X Twitter
YouTube
LinkedIn
Threads
TikTok
    Component preview thumbnail
    MarketplaceComponents

    Viewport Display

    This resource allows you to dynamically fetch the viewport width and height, offering full customization options to modify text, styling, and icons.

    Framer Lists
    Framer Lists
    Creator
    1mo ago
    Updated
    47
    Installs
    Framer Lists
    Framer Lists
    Creator
    1mo ago
    Updated
    47
    Installs

    Make it with Workshop

    Build your own component with AI


    Live width × height badge with a responsive device icon and smooth digit transitions. Great for responsive debugging and polished handoffs.

    Overview

    Viewport Display shows your current browser size in real time and auto-swaps a device icon based on breakpoints. Every digit animates on change for a clean, premium feel. Style the card, icon, and typography from Property Controls. Optionally drop in your own inline SVGs for desktop, tablet, and mobile.

    Highlights

    • Live viewport readout: width × height

    • Device-aware icon with desktop, tablet, mobile states

    • Optional custom SVGs per breakpoint

    • Per-digit spring animation on change

    • Extended font control and color control

    • Full card styling: padding, radius, border, shadow

    • Light and dark friendly

    • Zero setup inside Framer

    Use cases

    • Debug responsive layouts on live pages

    • Show size hints during reviews and handoffs

    • Pin in a dev HUD, navbar, or footer

    • Drop in marketing pages as a subtle, dynamic detail

    Property Controls

    Card

    • Background

    • Box Shadow

    • Border Width, Style, Color

    • Padding (per side)

    • Radius (per corner)

    • Icon Gap

    Icon

    • Width, Height

    • Color

    Text

    • Color

    • Font (Extended controls. Display font size. Monospace by default.)

    Custom SVGs

    • Desktop SVG, Tablet SVG, Mobile SVGInline <svg>…</svg> strings. Fills are converted to currentColor. Uses Icon width and height.

    Behavior

    • Breakpoints: Desktop ≥1200, Tablet ≥810, Mobile <810

    • If a custom SVG is missing for a breakpoint, a Lucide icon is used

    • Digits that change animate in with a staggered spring

    Performance

    • Single resize listener, lightweight update cycle

    • Animates only the digits that changed

    • Sensible defaults for canvas and preview

    Notes

    • Works inside Framer’s runtime. On first render without window, defaults to 1200 × 800 then syncs on mount.

    • When using custom SVGs, keep markup minimal. Colors come from the Icon color via currentColor.

    What’s included

    • Viewport Display code component

    • Clean defaults and helpful descriptions on every control

    Support
    Framer
    EnterprisePricing
    Log inSign up
    Enterprise
    Pricing
    Log in
    Sign up
    Marketplace
    TemplatesPluginsComponentsVectors
    Templates
    Plugins
    Components
    Vectors
    About Components
    Refund Policy
    Contact Creator

    More Components

    See All →
    Thumbnail for Stories Gallery, a Framer Marketplace template by Mauricio Amaral.
    Stories Gallery
    $10
    Mauricio Amaral
    Thumbnail for OS Detection Button, a Framer Marketplace template by Samuel Allotey.
    OS Detection Button
    $10
    Samuel Allotey
    Thumbnail for Scroll to Top, a Framer Marketplace template by Arnab Maiti.
    Scroll to Top
    $2
    Arnab Maiti
    Thumbnail for FrameGlide, a Framer Marketplace template by Hamim Reza.
    FrameGlide
    $10
    Hamim Reza
    Thumbnail for Text Type Animation, a Framer Marketplace template by Sadman Alam.
    Text Type Animation
    $8
    Sadman Alam
    Thumbnail for Scroll Text Reveal, a Framer Marketplace template by Cédric.
    Scroll Text Reveal
    $10
    Cédric
    Thumbnail for Image Gallery, a Framer Marketplace template by Edi Priatama.
    Image Gallery
    Free
    Edi Priatama
    Thumbnail for Realistic Fall, a Framer Marketplace template by Nabeel.
    Realistic Fall
    $9
    Nabeel

    More from Framer Lists

    See All →
    Thumbnail for Dot Matrix SVG, a Framer Marketplace component by Framer Lists.
    Dot Matrix SVG
    component · Free
    Framer Lists
    Thumbnail for SmoothTabs, a Framer Marketplace component by Framer Lists.
    SmoothTabs
    component · Free
    Framer Lists
    Thumbnail for FQAs_accordian, a Framer Marketplace component by Framer Lists.
    FQAs_accordian
    component · Free
    Framer Lists
    Thumbnail 1 for Ethereal, a Framer Marketplace template by Framer Lists.Thumbnail 2 for Ethereal, a Framer Marketplace template by Framer Lists.
    Ethereal
    template · Free
    Framer Lists
    Thumbnail 1 for GalaxyIcons, a Framer Marketplace template by Framer Lists.Thumbnail 2 for GalaxyIcons, a Framer Marketplace template by Framer Lists.
    GalaxyIcons
    template · Free
    Framer Lists
    Thumbnail 1 for LuxsResidenz, a Framer Marketplace template by Framer Lists.Thumbnail 2 for LuxsResidenz, a Framer Marketplace template by Framer Lists.
    LuxsResidenz
    template · Free
    Framer Lists
    Thumbnail 1 for Fintro, a Framer Marketplace template by Framer Lists.Thumbnail 2 for Fintro, a Framer Marketplace template by Framer Lists.
    Fintro
    template · Free
    Framer Lists