1.0.0 • Published 7 years ago
the-alt v1.0.0
the-alt
Alt text for the-components
Installation
$ npm install the-alt --saveUsage
'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 ExampleComponentComponents
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
7 years ago