CodeDraken / CodeDraken/spectre-react
Add Typography Props Mixin
Aperta
enhancement
- Lingua principale
- JavaScript
- Stelle
- 7
- Fork
- 6
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
When a component is primarily text ( i.e title, subtitle components ) it should allow typography classes to be passed as a boolean.
Example:
This would add the `h5` class.
```js
```
Since this would apply to several components a mixin can be created to avoid repetition.
Things to include:
* Headers i.e `h1`
* Colors i.e `text-gray`
* Positioning i.e `text-center`
https://picturepan2.github.io/spectre/elements.html#typography
https://picturepan2.github.io/spectre/utilities.html
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.