Text Pressure(004)
Variable font weight and optical sizing that react dynamically to cursor proximity.
Hover
Loading…
Installation
$npx kibo add text-pressure
Usage
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
text | string | "Compressa" | The text to display. |
fontFamily | string | "Roboto Flex" | The Google Font family to use. |
fontUrl | string | "https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap" | The URL to the Google Font. |
width | boolean | true | Whether to adjust font width based on cursor. |
weight | boolean | true | Whether to adjust font weight based on cursor. |
italic | boolean | true | Whether to adjust italic slant based on cursor. |
alpha | boolean | false | Whether to adjust opacity based on cursor. |
flex | boolean | true | Whether to use flexbox spacing. |
stroke | boolean | false | Whether to render a stroke effect instead of solid text. |
scale | boolean | false | Whether to scale text to fill container height. |
textColor | string | "#FFFFFF" | Base text color. |
strokeColor | string | "#FF0000" | Stroke color if stroke is true. |
strokeWidth | number | 2 | Stroke width in pixels if stroke is true. |
className | string | "" | Additional CSS classes. |
minFontSize | number | 24 | Minimum font size in pixels. |