프로젝트
GitHub에서 보기
gianu/react-fittext
소개
React Plugin to fit text on the screen
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalReact Fit text
This component is a port of the famous fit text plugin for jQuery to use with React.
This component is 100% jQuery Free.
Homepage: http://softwarepsychonaut.com/react-fittext
Usage
Simply wrap your text component inside
// In your React component
var ReactFitText = require('react-fittext');
...
<ReactFitText>
<h2>Testing React Fittext</h2>
</ReactFitText>
and you're good to go!
If you want to see a live demo of this component, you can check the homepage.
Parameters
There are few options you can send to the component to modify it default behaviour:
- compressor: you can tweak this variable to increase / decrease the font-size. Default is 1.
- minFontSize: the minimun font size (in px) this component should use.
- maxFontSize: the maximum font size (in px) this component should use.
Issues / PR
If you found any issue with this component, please report it.
If you want to improve the code, feel free to create a PR!
Thanks
관련 프로젝트 살펴보기
불러오는 중…