kolibri-design-system
kolibri-design-system copied to clipboard
Hints: Method and public properties
Product
Kolibri
Desired behavior
Adding the following public method:
takeHint which, if defined on the wrapped renderer component, will cause a hint to be taken
Adding the following public properties:
availableHints - the number of hints available to be given - will change as takeHint is used.
totalHints - the total number of hints available.
Current behavior
These have to be directly accessed from the child component.
(Optional) The Value Add
Define a public API and avoid having to reach into the internals of components
(Optional) Possible Tradeoffs
API bloat for KContentRenderer - potentially too specific to Perseus renderer.