CodeDraken / CodeDraken/spectre-react

Add Typography Props Mixin

Offen
#32 0 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @CodeDraken Auf GitHub ansehen
enhancement
Vorherrschende Sprache
JavaScript
Sterne
7
Forks
6
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.