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.

Ability to use bootstrap classes

See original GitHub issue

It would be nice to have a feature so that if my component is wrapped in your provider all children can use css classes like d-flex, text-danger, and so on.

Is this “sort-of” supported now?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aichbauercommented, Mar 15, 2019

Thank you, I am glad you like it 😀

If you think about something similar to Utility classes of Bootstrap. Than I definitely would love to support this. While I think we should not use className for them since this library currently is props based.

But we could definitely support something similar to <Button text-danger>Somthing</Button>? What do you think of that idea?

0reactions
michaelkryukovcommented, May 29, 2019

I started to work on this issue. Here are results so far. Looks promising.

import { Utilities } from "./utilities";

const Div = styled.div`
  ${Utilities}
`;

function App() {
  return (
    <Div dFlex flexColumn>
      <Div ml4>Hello CodeSandbox</Div>
      <Div ml1>Hello CodeSandbox</Div>
      <Div invisible>Hello CodeSandbox</Div>
    </Div>
  );
}

It looks like this can become a nice separate package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript - Bootstrap
You can use all Bootstrap plugins purely through the markup API without writing a single line of JavaScript. This is Bootstrap's first-class API...
Read more >
Bootstrap Get Started - W3Schools
Easy to use: Anybody with just basic knowledge of HTML and CSS can start using Bootstrap ; Responsive features: Bootstrap's responsive CSS adjusts...
Read more >
Learn Bootstrap: How to Start Using It On Your Website
The short answer is that it depends on you. If you're a professional developer who already knows HTML, CSS and JavaScript well, you...
Read more >
The Ultimate Guide to Bootstrap CSS - HubSpot Blog
Bootstrap is less than 500KB. You can also take several steps to reduce that weight and mitigate its impact on load time. For...
Read more >
Bootstrap CSS Framework - Full Course for Beginners
Learn Bootstrap 5 in this full course for beginners. Bootstrap is the most popular CSS framework. It allows web developers to quickly design ......
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