-
-
Notifications
You must be signed in to change notification settings - Fork 82
Open
Description
Howdy! Thanks for starting this. Before I did a bunch of work, I wanted to put forward some suggestions for components to see if you'd be interested in adding them to libreact. If there's interest, I'll definitely make some PRs!
TouchSensor: This would pass through a boolean indicating if the device supports touch interactions or not. Useful for displaying some UI components on a mobile device rather than guessing a good width.OSOnly: The OS of the device. This would be helpful for changing/adjusting layout based on Safari's bottom bar, etc. Takes an array of OS' to target.ReducedMotionSensor: Renders via a child function that passes through whether the user prefers reduced animation on their device. Name isn't the best. Probably just exports a specific instance ofMediaSensor- Conditional components. It would be interesting to see if
js-control-statementswould be willing to merge with this project! Tabs: I don't like the name, but this would provide a way to have a nav that toggles content below without (or maybe with?) changing the route.LoadingSpinner: Some sort of nice default for a loading spinner.
Metadata
Metadata
Assignees
Labels
No labels