Linen Texture
ProNewA fine woven texture of crossed threads for quiet, tactile surfaces.
Installation
pnpm dlx shadcn@latest add @viewport/linen-texture
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
The code behind the preview above comes with Truffle Pro.
Props
| Prop | Type | Default |
|---|---|---|
| thread | numberDistance between threads in CSS pixels. | 3 |
| opacity | numberStrength from 0 (none) to 1 (strongest). | 0.5 |
| className | stringUse text color utilities to tint the weave. | — |
| style | CSSProperties | — |
Accessibility
- Decorative and hidden from assistive technology.
- Ignores pointer events and is hidden in forced-colors mode.
- Static and requires no browser JavaScript to paint.