question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[system] Box props types any

See original GitHub issue

Hi guys , do i have a bug somewhere in my config or you dont provide a flexbox types for intellisence? I cant get suggestions from flex api when i use your Box components. image Any way to get flexbox types suggestions from your Box api ? i try npm install @types/react-flex -D -S but not work !

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
oliviertassinaricommented, Jul 19, 2020

Would it make sense to have?

import * as CSS from 'csstype';

CSS.Properties['justifyContent'];

However, we would also need to account for the breakpoint API.

1reaction
oliviertassinaricommented, Jul 18, 2020

@djmisterjon Thanks for raising the issue, I can reproduce it on https://codesandbox.io/s/material-demo-cilh8?file=/demo.tsx.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[system] Box props types any · Issue #21825 · mui/material-ui
Any way to get flexbox types suggestions from your Box api ? i try npm install @types/react-flex -D -S but not work !...
Read more >
Build a Box - Styled System
The css prop is a very popular way to handle one-off styles. If your Box component needs a small style change you can...
Read more >
TypeScript - System Props
System Props supports TypeScript out of the box, including types for all of the built-in props. ... You can use these props to...
Read more >
Box API - MUI System
The system prop that allows defining system overrides as well as additional CSS styles. See the `sx` page for more details. As a...
Read more >
@styled-system/prop-types | Yarn - Package Manager
import styled from 'styled-components' import { space, color } from 'styled-system' import propTypes from '@styled-system/prop-types' const Box ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found