@neynar/ui
Version:
React UI component library built on shadcn/ui and Tailwind CSS
48 lines (38 loc) • 1.08 kB
Markdown
# TableCaption
**Type**: component
TableCaption - Table caption for describing table content and context Provides a description, title, or additional context for the table. Displayed with muted styling and proper spacing. Essential for accessibility as screen readers announce the caption to provide table context.
## JSX Usage
```jsx
import { TableCaption } from '@neynar/ui';
<TableCaption
className="value"
>
{/* Your content here */}
</TableCaption>
```
## Component Props
### className
- **Type**: `string`
- **Required**: No
- **Description**: No description available
### children
- **Type**: `React.ReactNode`
- **Required**: No
- **Description**: No description available
## Examples
```tsx
<Table>
<TableCaption>Recent casts from your network</TableCaption>
<TableHeader>...</TableHeader>
<TableBody>...</TableBody>
</Table>
// Caption with additional context
<Table>
<TableCaption>
Channel analytics for the last 30 days.
Data updated every hour.
</TableCaption>
<TableHeader>...</TableHeader>
<TableBody>...</TableBody>
</Table>
```