1.0.0 • Published 5 years ago

the-alt v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

the-alt

Build Status npm Version JS Standard

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

NameTypeDescriptionDefault
enabledboolfalse
textnodenull

TheAltStyle

Style for TheAlt

Props

NameTypeDescriptionDefault
optionsobjectStyle options{}

License

This software is released under the MIT License.

Links