(props)
| 13 | }; |
| 14 | |
| 15 | function FormText(props) { |
| 16 | const { |
| 17 | className, |
| 18 | cssModule, |
| 19 | inline, |
| 20 | color = 'muted', |
| 21 | tag: Tag = 'small', |
| 22 | ...attributes |
| 23 | } = props; |
| 24 | |
| 25 | const classes = mapToCssModules( |
| 26 | classNames( |
| 27 | className, |
| 28 | !inline ? 'form-text' : false, |
| 29 | color ? `text-${color}` : false, |
| 30 | ), |
| 31 | cssModule, |
| 32 | ); |
| 33 | |
| 34 | return <Tag {...attributes} className={classes} />; |
| 35 | } |
| 36 | |
| 37 | FormText.propTypes = propTypes; |
| 38 |
nothing calls this directly
no test coverage detected
searching dependent graphs…