1.0.0 • Published 5 years ago
the-alt v1.0.0
the-alt
Alt text for the-components
Installation
$ npm install the-alt --save
Usage
'use strict'
import React from 'react'
import { TheAlt, TheAltStyle } from 'the-alt'
class ExampleComponent extends React.Component {
render () {
return (
<div>
<TheAltStyle/>
<TheAlt enabled text={'This is visible'}/>
<TheAlt text={'This is not visible'}/>
</div>
)
}
}
export default ExampleComponent
Components
TheAlt
Alt text for the-components
Props
Name | Type | Description | Default |
---|---|---|---|
enabled | bool | false | |
text | node | null |
TheAltStyle
Style for TheAlt
Props
Name | Type | Description | Default |
---|---|---|---|
options | object | Style options | {} |
License
This software is released under the MIT License.
Links
1.0.0
5 years ago