0.0.5 • Published 5 months ago

matn v0.0.5

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

Matn Component

Matn component provides advanced text rendering with features such as number formatting, animations, highlights, gradients, and more.

Installation

npm install matn
# or
yarn add matn

Usage

import Matn from "matn";

function App() {
  return (
    <Matn
      highlight={["React"]}
      highlightColor="yellow"
      formatNumber
      animateNumber
      duration={1500}
      font="bold"
      color="blue"
      copyable
    >
      1234567
    </Matn>
  );
}

Props

PropTypeDefaultDescription
childrenstring \| number-The text or number to display.
highlightstring[][]Words to highlight.
highlightColorstringyellowHighlight color.
formatNumberbooleanfalseFormat numbers with separators.
separator' ' \| ',' \| '.' \| 'auto'' 'Number separator.
animateNumberbooleanfalseAnimate number counting.
durationnumber1000Animation duration (ms).
font'normal' \| 'italic' \| 'bold''normal'Font style.
colorstring-Text color.
lineCountnumber-Limits the number of lines.
copyablebooleanfalseEnables copying text.
maskboolean \| RegExpfalseMasks text partially or with regex.
htmlbooleanfalseRenders text as HTML.
tooltipstring-Tooltip text.
letterSpacingnumber-Adjust letter spacing.
gradientstring-Gradient text effect.
marqueebooleanfalseEnables marquee scrolling.
responsiveFontbooleanfalseEnables responsive font size.
typewriterbooleanfalseSimulates typewriter effect.
autoLinkbooleanfalseAuto-links URLs in text.

License

MIT

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago