Vigyata.AI
Is this your channel?
GithubGithub00

40 Add @style Blade directive

This PR is where the new @style Blade directive was introduced. I demoed how it conditionally renders inline styles similar to @class, and it even handles semicolons nicely in the generated output.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Cleaner conditional inline styling in Blade
  • +Similar mental model to the @class directive

Cons

  • -You still need to be mindful when mixing multiple rules like padding

Featured in 2 videos