Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@idot-digital/fit-text

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@idot-digital/fit-text

Fit any text, centered to available width and height

latest
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

@idot-digital/fit-text

Fit any text, centered to available width and height

NPM JavaScript Style Guide

Install

npm install --save @idot-digital/fit-text
yarn add  @idot-digital/fit-text

Usage

import React, { Component } from 'react'

import TextFit from '@idot-digital/fit-text'

class Example extends Component {
  render() {
    /* targetSize in px */
    /* alignItems for vertical centering */
    /* textAlign for horizontal centering */
    return (
      <TextFit
        text='Some text...'
        targetSize={10}
        alignItems='start'
        textAlign='left'
      />
    )
  }
}

License

UNLICENSED © @idot-digital

FAQs

Package last updated on 23 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts