adom-typography

0.0.4 • Public • Published

Typography Component

This is a flexible and customizable typography component for both Astrojs and Preact environments. It provides a wide range of options to style text elements according to your design needs.

Installation

npm install adom-typography

🚀 Props

  • variant: Specifies the HTML element type (h1, h2, h3, h4, h5, h6, p, span, div). Default is "p".
  • type: Sets the text color (current, primary, secondary, tertiary, accent). Default is "current".
  • size: Sets the text size (mini, small, medium, large, extra). Default is "medium".
  • weight: Specifies the font weight (thin, extralight, light, normal, medium, semibold, bold, extrabold, black). Default is "normal".
  • text: The content of the typography element.
  • class: Additional CSS classes to apply.
  • responsive: Whether the typography should be responsive. Default is false.
  • customSize: Allows specifying a custom size for the typography.

Package Sidebar

Install

npm i adom-typography

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

15.1 kB

Total Files

10

Last publish

Collaborators

  • adominguezes