loc
104
comments
30%
todos
2
passed
10
coverage
69%
Starter
This example demonstrates documenting a hypothetical Button component that supports variants, icons, text, and padding
Name | Description | Default | Controls |
---|---|---|---|
text | button label of text string | - | |
variant | variant kind disabledprimaryaccentsuccesswarningerror | primary | |
fontSize | font size for the Button label number | 18 | |
icon | icon kind nonesearchleft-arrowright-arrowdown-arrowup-arrow | none | |
iconSide | on which side of the label should the icon be placed leftright | left | |
iconSize | icon size smallmediumlarge | small | |
padding | padding variants smallmediumlarge | medium |
Status | Full name | Title | Time(ms) | |
---|---|---|---|---|
VariantButton.test.ts(10 tests) | ||||
passed | VariantButton > overview > 1 | snapshot | 46 | |
passed | VariantButton > overview > 1 | accessibility | 199 | |
passed | VariantButton > overview > 2 | snapshot | 18 | |
passed | VariantButton > overview > 2 | accessibility | 199 | |
passed | VariantButton > overview > 3 | snapshot | 13 | |
passed | VariantButton > overview > 3 | accessibility | 176 | |
passed | VariantButton > overview > 4 | snapshot | 13 | |
passed | VariantButton > overview > 4 | accessibility | 191 | |
passed | VariantButton > overview > 5 | snapshot | 16 |
total 10 tests
Kind | Total | Covered | Skipped | % | |
---|---|---|---|---|---|
VariantButton.tsx | |||||
lines | 11 | 11 | 0 | 100% | |
functions | 1 | 1 | 0 | 100% | |
statements | 11 | 11 | 0 | 100% | |
branches | 13 | 9 | 0 | 69.23% |