= ({ of: component, components }) => {
{name} |
{getPropType(prop, Tooltip)} |
{String(prop.required)} |
-
- {prop.defaultValue &&
- prop.defaultValue.value.replace(/\'/g, '')}
- |
- {prop.description && prop.description} |
+ {!prop.defaultValue ? (
+
+ [No Default]
+ |
+ ) : (
+
+ {prop.defaultValue.value === "''" ? (
+ [Empty String]
+ ) : (
+ prop.defaultValue &&
+ prop.defaultValue.value.replace(/\'/g, '')
+ )}
+ |
+ )}
+ {includeDescription && (
+ {prop.description && prop.description} |
+ )}
)
})}