You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've proven that Semantic UI modules, including animations, can be written with no jQuery. We will officially proceed this way for version 1.
We also need to solidify the component API before continuing. Semantic UI uses html class values for all component properties. We need to choose how we'll build up the className string. This can have great consequence on key areas of the library:
Performance
Documentation
PropTypes Validation
Expressiveness
Ease of use
Of course, this is also not something we'll be changing once it is settled. Once we narrow these down a bit, I'll do some performance analysis to ensure we make a performant decision.
Here are the proposals so far, please give your thoughts. Keep in mind, this is only the API for className buildup. How we break down components and handle html hierarchy is not part of this issue.
Offline consensus says to go with 3 as the most expressive with least parsing required. Also gives best validation actually. Color redd can be caught where as with approach 1, it would be spread as a bool prop.
Also, this expressive and generic API keeps us less coupled to Semantic UI should we want to reuse the component interfaces for other frameworks later.
We've proven that Semantic UI modules, including animations, can be written with no jQuery. We will officially proceed this way for version 1.
We also need to solidify the component API before continuing. Semantic UI uses html
class
values for all component properties. We need to choose how we'll build up theclassName
string. This can have great consequence on key areas of the library:Of course, this is also not something we'll be changing once it is settled. Once we narrow these down a bit, I'll do some performance analysis to ensure we make a performant decision.
Here are the proposals so far, please give your thoughts. Keep in mind, this is only the API for
className
buildup. How we break down components and handle html hierarchy is not part of this issue.1. Every className is a bool prop
2. Use SUI glossary terminology (type, state, variation)
3. Common props as enums, bool for others
4. Just use className, as it is in Semantic UI
4.a Separate SUI classes in
ui
prop.The text was updated successfully, but these errors were encountered: