LogoLogo
Quest HomeSign Up
  • 😀Welcome to Quest
  • Getting Started
    • Quest Overview
    • Helpful Resources
    • Quick Start - Build your first component from Figma
    • Quick Start - Build your first component from a Wireframe
    • AI Prompt
  • Fundamentals
    • Customizing & Using the UI Kit
    • Designing Custom Components in Figma
    • Easily Sync Designs without Losing Work
    • Setting Up Props & Bindings
    • Exporting Code
    • Push to your Repository
    • Creating Responsive Components
    • Nesting Components
    • Workspaces & Apps
    • Code & Preview Mode
    • Prototypes/Wireframes
    • Animations - build with React Spring
    • Quest plugin for Figma Dev Mode
    • Publish on Quest to a URL
  • Features
    • Working with Variants & States
    • Naming Conventions
    • Previewing with Custom Fonts
    • Light & Dark Mode
    • Creating a custom Tooltip
    • Creating a Floating Popover
    • Creating a Dialog pop-up
    • Radio Group
    • Using the MUI Data Grid & Table
    • Data & List Bindings
    • Dynamic Bindings
    • Grid
    • File Upload
    • Design System Tab and Theme Import
    • How-to use a Theme in your Application
    • Accessibility Support
    • Design Tips and Tricks
    • Video
    • Lazy Loading
    • Sticky Position
    • Link
    • Custom Breakpoints
    • Min / Max Width
    • Supported Quest UI Kit Components & How-to Make Edits in Figma
    • Supported Chakra Components & How-to Make Edits in Figma
  • Advanced Tutorials
    • Setting up Bindings and Features on the MUI Button
    • Display Repeating Components based on a Dynamic List
    • How-to Pass Values from Parent to Nested Components
    • How-to Invoke a modal Dialog Box from a Button Click
    • How to Setup a popover
  • 🔍Help
    • Product Updates
    • FAQs
    • Plugin Warnings / Alerts
  • 💡Support
    • Why does my design look different in Quest than Figma?
    • Can I keep making changes in Figma without affecting code?
    • What are some best practices?
    • Does Quest support more than Figma and React?
    • How do I manage users?
    • What is the refund process?
    • How do I get in touch with Quest?
    • Do I have to use MUI if I'm using Quest?
Powered by GitBook
On this page
  • Setting & Adjusting Breakpoints
  • Variants as Breakpoints vs. Variants as States

Was this helpful?

  1. Features

Custom Breakpoints

PreviousLinkNextMin / Max Width

Last updated 2 years ago

Was this helpful?

When exporting a component with Variants that are all different widths, Quest will automatically bring in those Variants as Breakpoints. In this mode for variants, this will automatically create breakpoints which you can see when you rollover any of the screensize icons in the top bar. Breakpoints are state triggers that control which variant you are seeing based on the screen width and is auto generated by Quest.

When exporting your component that is using Breakpoints, an additional file will be generated to handle the breakpoints called: [YourComponentName]ResponsiveSize.js/.ts

Setting & Adjusting Breakpoints

When you export your component from Figma into Quest, Quest will automatically create breakpoint values based on the average between the widths. This can be seen by rolling over the screensize icons at the top and can be adjusted by clicking on the value and typing to change it. This change will be reflected when in Preview mode and of course in your live App.

Variants as Breakpoints vs. Variants as States

Variants as States are best used when the different states are for interactions or user feedback. An example of this would be different states of a button such as default, hover, clicked, disabled, etc. It is also the way for you to use State Animations as Variants as Breakpoints will hide this option.

Variants as Breakpoints are best when you're designing webpages for different screen sizes or nested components that you want to have look differently based on the screensize they're displayed in.

Quest will do it's best to auto-detect the intent of your design but you can simply use the drop-down to change it from one to the other in case that intent was misunderstood.