UNPKG

@neynar/ui

Version:

React UI component library built on shadcn/ui and Tailwind CSS

43 lines (33 loc) 843 B
# CardTitle **Type**: component CardTitle - The main title of a card Renders the primary heading for a card. Should be used within CardHeader to maintain proper semantic structure and visual hierarchy. Uses semibold font weight and leading-none for compact appearance. ## JSX Usage ```jsx import { CardTitle } from '@neynar/ui'; <CardTitle className="value" > {/* Your content here */} </CardTitle> ``` ## Component Props ### className - **Type**: `string` - **Required**: No - **Description**: No description available ### children - **Type**: `React.ReactNode` - **Required**: No - **Description**: No description available ## Examples ### Example 1 ```tsx <CardTitle>Dashboard Overview</CardTitle> ``` ### Example 2 ```tsx // With custom styling <CardTitle className="text-lg text-primary"> Featured Product </CardTitle> ```