How does it deal with UU/accessibility?
Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
11–16 of 16 posts
Re: Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
#12Just curious even though it's a really long shot, is it related in any way to Picnic CSS' Tooltip [1] (disclaimer: my own)? The button "Custom" and the black tooltip look quite similar, it is probably just chance but would love to know. [1] https://picnicss.com/documentation (+ click on tooltip) PS, I had the same feeling about a Google IO presentation but told myself that it was just a generic style; then I saw in t…
Re: Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
#13Just curious even though it's a really long shot, is it related in any way to Picnic CSS' Tooltip [1] (disclaimer: my own)? The button "Custom" and the black tooltip look quite similar, it is probably just chance but would love to know. [1] https://picnicss.com/documentation (+ click on tooltip) PS, I had the same feeling about a Google IO presentation but told myself that it was just a generic style; then I saw in t…
Isn't it the most generic css tooltip style on the internet? (just black tooltip with white text and border-radius)
Re: Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
#14Btw if anyone will need similar component for vue, here is one: https://github.com/euvl/vue-js-popover
Re: Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
#15So good to see libraries made to be compatible with both React, Preact and Inferno. Unless Facebook changes it's React open source license, this will probably become standard for most of the libraries made for React.
Re: Show HN: React-hint – 150LoC Tooltip Component for React, Preact and Inferno
#16Earlier quoted context omitted.
Have you tried making an alias for react with the library preact-compat in webpack config? It should make a lot of react libraries work seamlessly with preact too.
Yes that works in most cases but I strive not to use preact-compat - like to keep things lightweight.
import {h, Component} from 'preact'
import {ReactHintFactory} from 'react-hint'
import 'react-hint/css/index.css'
const ReactHint = ReactHintFactory({createElement: h,
Component})