Code Monkey home page Code Monkey logo

yogurt-layout's Issues

Feat: Add `margin` and `gap` properties

We need to define a couple things:

  • Should the properties add between each other, or be exclusive?
  • How should the gap work?
    • @ivanross suggests an approach like div > * + * { margin-left: x } where it's placed between childs only if the children are >1.
  • Should gap be number | [number, number], to allow vertical/horizontal?

cc @ivanross @marcofugaro @gsimone (#1)

Feedback

Hey! ๐Ÿ‘‹ Great little lib, I'm playing around with it and react-three-fiber, since laying stuff out is usually painful: https://codesandbox.io/s/blissful-lake-84hxp (<= this might explode while I work on it :D )

Here's a couple of quick things:

  1. gap and margin properties. In the example I wanted to add some gap between items, it would be great being able to do it without having to add a container
  2. direction could default to row like flex-direction does in css
  3. height and width defaults (auto probably), just to reduce boilerplate

Anyway, main message is: Kudos, this is great!

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.