@neynar/ui
Version:
React UI component library built on shadcn/ui and Tailwind CSS
56 lines (46 loc) • 1.33 kB
Markdown
for actions Positioned at the bottom of the card and commonly used for action buttons, supplementary information, or navigation elements. Uses flexbox layout with automatic alignment of items. Can be styled with border-top when visual separation from content is needed.
```jsx
import { CardFooter } from '@neynar/ui';
<CardFooter
className="value"
>
{/* Your content here */}
</CardFooter>
```
- **Type**: `string`
- **Required**: No
- **Description**: No description available
- **Type**: `React.ReactNode`
- **Required**: No
- **Description**: No description available
```tsx
// Basic footer with actions
<CardFooter>
<Button variant="outline">Cancel</Button>
<Button>Save</Button>
</CardFooter>
```
```tsx
// Footer with gap for better spacing
<CardFooter className="gap-2">
<Button variant="outline" className="flex-1">Cancel</Button>
<Button className="flex-1">Confirm</Button>
</CardFooter>
```
```tsx
// Footer with supplementary info
<CardFooter className="justify-between">
<span className="text-sm text-muted-foreground">Last updated 2 days ago</span>
<Button size="sm">Edit</Button>
</CardFooter>
```
**Type**: component
CardFooter - Footer area of a card, typically