1.0.1 • Published 3 months ago

react-responsive-text v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

React responsive text

This library generates text that scales automatically depending on the parent container width. For the moment it only supports single line texts.

Usage

import { ResponsiveText } from 'react-responsive-text'

<div style={{ width: '100%' }}>
    <ResponsiveText>
        Hello world
    </ResponsiveText>
</div>

You can pass all SVGTextElementAttributes<SVGTextElement> supported props such as fill and fontWeight to customize the displayed text.

1.0.1

3 months ago

1.0.0

6 months ago