Code Monkey home page Code Monkey logo

Comments (3)

mobily avatar mobily commented on August 26, 2024 1

@julienrondeau thanks for the feedback! 😊 breakpoints support is on my TODO list as well, not sure how it will look like eventually, but I was thinking about adding a similar thing as you may find in Braid Layout API (look for responsive prop), for instance:

<Stack space={[2, 4]}></Stack>
// 2 for mobile screen size
// 4 for tablet screen size

WDYT?

from stacks.

julienrondeau avatar julienrondeau commented on August 26, 2024

@mobily thanks for this quick answer :)

well it 's a good idea, but may be for more readability something like :
<Stack space={[xs: 1, s: 2, m:4]}>... ?
or
<Stack space={[smallMobile: 1, mobile: 2, tablet: 4]}>... ?

with may be a way to customize breakpoints names and sizes ....?

just ideas...

thanks

from stacks.

mobily avatar mobily commented on August 26, 2024

@julienrondeau breakpoints support has been added, however, I picked out Braid approach, I believe 3 primary breakpoints should be enough for most apps (especially for mobile apps) and shorter syntax using an array of values for different screen sizes might reduce a redundant noise in code, and might be more developer-friendly as well ;)

anyway, thank you for your suggestion 💯

you may want to take a look on updated docs here:
https://mobily.github.io/stacks/docs/breakpoints

from stacks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.