Manifest Types
manifest-ui/manifest-typesFreeUtility
Shared type definitions for Manifest UI components.
Install it
npx shadcn@latest add https://ui.manifest.build/r/manifest-types.jsonSource
1// Shared type definitions for Manifest UI components2// This file is installed as components/ui/types.ts via the manifest-types registry item.3// All category-specific types are unified here to prevent collisions when4// installing multiple components via shadcn CLI.56import type { ReactNode } from 'react'78// ---------------------------------------------------------------------------9// Blogging10// ---------------------------------------------------------------------------1112/**13 * Represents a blog post with metadata.14 * @interface Post15 * @property {string} [title] - Post title16 * @property {string} [excerpt] - Brief description or summary17 * @property {string} [coverImage] - URL of the cover image18 * @property {object} [author] - Author information19 * @property {string} [author.name] - Author's display name20 * @property {string} [author.avatar] - Author's avatar URL21 * @property {string} [publishedAt] - ISO date string of publication22 * @property {string} [readTime] - Estimated read time (e.g., "5 min read")23 * @property {string[]} [tags] - Array of tag labels24 * @property {string} [category] - Category name25 * @property {string} [url] - External URL for the post26 */27export interface Post {28 title?: string29 excerpt?: string30 coverImage?: string31 author?: {32 name?: string33 avatar?: string34 }35 publishedAt?: string36 readTime?: string37 tags?: string[]38 category?: string39 url?: string40}4142// ---------------------------------------------------------------------------43// List44// ---------------------------------------------------------------------------4546/**47 * Represents a product with pricing and display information.48 * @interface Product49 */50export interface Product {51 name?: string52 description?: string53 price?: number54 originalPrice?: number55 image?: string56 rating?: number57 badge?: string58 inStock?: boolean59}6061// ---------------------------------------------------------------------------62// Selection63// ---------------------------------------------------------------------------6465/**66 * Represents a selectable option with label and description.67 * @interface Option68 */69export interface Option {70 label?: string71 description?: string72 icon?: ReactNode73 disabled?: boolean74}7576// ---------------------------------------------------------------------------77// Messaging78// ---------------------------------------------------------------------------7980/**81 * Represents a chat message with content and metadata.82 * @interface ChatMessage83// … truncated
Files it writes
More from Manifest UI
All 32 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Event Shared Utilitiesevent-shared | Manifest UI | Utilities | Free | 3 deps |
