Sawala is an Wrapper of Qiscus Chat SDK using the React framework. It's designed for Kata Internal needs.
Note: Sawala is still in beta.
These goals guide us on what to strive for when building features for Sawala.
- Use component/prop names that are as clear and standard as possible.
- Strive for component + prop names no longer than 2-3 words.
- Use the onVerb naming structure for event handlers.
- Keep component/prop names concise without being clever.
- When in doubt, look at other component libraries for inspiration.
- Provide primitive components (e.g.
Box
andText
) which provides full control of styling + theme. - Higher-level components should’t expose underlying internals in the API unless necessary.
- Consider leveraging React features + patterns like render props and/or Hooks for enhanced modularity + easy reuse of components.
- Components should be designed with accessibility in mind. Make sure the fancy features doesn’t break accessibility. (Morten Rand-Hendriksen)
- Strive for an accessible color contrast ratio. Aim for a contrast rating higher than “AA” and “AA Large”. (Check your color contrast here)
- Make sure components work well with screen readers, as well as for users with limited access to keyboards and mice.