yldio / styled-is

A flag utility for styled-components
Mozilla Public License 2.0
210 stars 8 forks source link

Get Single prop from props #54

Open radenkovic opened 4 years ago

radenkovic commented 4 years ago

Allows use of get(), also supports lodash jsonPath: get('theme.colorPrimary')

sergioramos commented 4 years ago

This is great, thank you 🙏

1) Feel free to choose a different name, I like all your suggestions 😉; 2) If you use something like lodash.get, you get a battle tested handler of the attribute getter.

radenkovic commented 4 years ago

This is great, thank you

  1. Feel free to choose a different name, I like all your suggestions wink;
  2. If you use something like lodash.get, you get a battle tested handler of the attribute getter.

I just updated it to use lodash/fp get, at first I was hesitant to include lodash.

I feel this is good to go!

callmeberzerker commented 3 years ago

Go for the win? :)