ihiutch / draft-ui Goto Github PK
View Code? Open in Web Editor NEWA collection of simply designed React components focused on making web accessibility as easy as copy & paste.
Home Page: https://draft-ui.com
License: MIT License
A collection of simply designed React components focused on making web accessibility as easy as copy & paste.
Home Page: https://draft-ui.com
License: MIT License
React Aria actually does something pretty clever that I think we can do too: https://react-spectrum.adobe.com/react-aria/SearchField.html#composed-components
Because many of their components are composed from more primitive components, I think it would be interesting to do something similar. The goal would be to link back to the React Aria docs, but as Im typing this it also interesting to think about doing something similar to their docs with the Draft UI docs. Where something like the Search Component links back to the Button, Label, and Input components. π€
Update code example theme to look nicer with the tailwind color scheme that's used on the docs
Do you plan on having a multi-select?
This one of the reasons I'm looking at alternatives to ShadCN (NextUI got a nice one)
These were skipped because I wasn't comfortable with how I grouped the Date components imports. However, the DatePickers depend on these components and they're not currently documented.
Hi ππ»
Saw this component library in a Tweet on my timeline and took a quick look as always great to see new projects pop up. Looks great so far, keep up the great work! ππ»
Found a small visual bug with ComboBox where the background only extends to the height of the viewport and therefore if the viewport height is tiny the items in the ComboBox extend beyond the background, which looks a bit π©.
Did my best to highlight the bug in the screenshot below.
This is in Chrome v112 on macOS, just in case it's browser or platform specific.
Hope this helps π
My biggest concern here is that I don't like the idea of having to use CSS variables or theme config to manage a theme. This feels like an unnecessary overhead that I found to be fairly complicated when trying to customize these components beyond changing a few colors. My original intention was to make it easy to get started building accessible interfaces and an additional step of configuring a theme or having to rip it out altogether seems like it would hurt more than help.
Then again, maybe being able to customize just enough makes Draft UI more appealing to use in the first place and/or easier to manage with a CLI installation tool.
I'd be curious to see what folks think.
Hi there,
I just found your project, and it looks great, but what is the license on the project?
Cheers,
Erik
A CLI for "installing" things would be nice. And could be relatively easy by using Sly CLI by @jacobparis. That comes with the benefit of sharing the maintenance burden as well.
Thoughts on a collaboration here?
Right now, full length code examples have a min height so they're scrollable. I think they may look a bit nicer if they're truncated/hidden by default and toggled to open taller or full-height. Similar to the shadcn/ui manual installation examples.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.