Adam Argyle @nerdy.dev · 21d

Prop For That now exposes the visiting browsers UA information as CSS variables prop-for-that.netlify.app/docsite/demo...

64 likes 3 replies

?

Replies

w-lfpup · 21d

Looks fun! I’ll have to check out the the src! I kinda feel like half this could be accomplished by using the media attribute on a link or style element? Might avoid more css properties which is nice (for me at least lol) <link media=“print”></link> <style media=“orientation: landscape”></style>

Adam Argyle · 21d

the ua-mobile prop is especially interesting to me because it's hard to know if a browser is actually a mobile user or not. laptops and pcs can easilly size their browser and/or emulate touch and trick many #CSS media queries into trigger mobile styles… but they're still on a desktop machine.

Anthony Frehner · 21d

I need a prop that lets me know if there’s a prop for that