dej611 / spid-react-button

Pulsante SSO per SPID in React
https://dej611.github.io/spid-react-button/
European Union Public License 1.2
19 stars 15 forks source link

[Doc] Expand types when in props #15

Closed dej611 closed 3 years ago

dej611 commented 3 years ago

Right now props are documented by showing the direct type value. For instance:

#### theme

**Type**: ColorTheme

**Required**: No

**Default value**: "positive"

"positive" is within the type ColorTheme, but unless scrolling it is not possible to know which other strings the type contains.

It would be nice to have the type value expanded (where possible): For instance:

#### theme

**Type**: ColorTheme ( "positive" | "negative" )

**Required**: No

**Default value**: "positive"