GithubHelp home page GithubHelp logo

jameslnewell / substance Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 9.25 MB

⚗️Primitives for building components.

Home Page: https://jameslnewell.github.io/substance

TypeScript 98.44% JavaScript 1.56%
react typescript components

substance's Introduction

⚗️ substance

built with github styled with prettier

Primitives for building components.

Development

Installation

yarn

Developing the Storybook

yarn run start:storybook

Developing the Website

yarn run start:website

Testing

yarn run testing

Versioning

yarn run bump

substance's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar jameslnewell avatar jameslnewell-bot avatar victorouse avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

substance's Issues

`Inline` - don't apply space if only one child

Description

If you have only one child in an Inline element with space{X,Y} applied, it will still apply padding to that single child.

Example

This emerged from having an Inline, Visible, and child components, where there is a single element on small breakpoints, and two on larger breakpoints.

<Inline spaceX="md">
  <Visible isVisible={{ xs: false, md: true }}>
    <Foo />
  </Visible>
  <Bar />
</Inline>

The workaround for this particular case was to apply spaceX responsively, to match the isVisible prop:

<Inline spaceX={{ md: "md" }}>
  <Visible isVisible={{ xs: false, md: true }}>
    <Foo />
  </Visible>
  <Bar />
</Inline>

Fix typings

Using preconstruct mixins and layouts were returning incorrect types with lots of any

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.