Profile List
deso-ui/profile-listFreeBlock
A list of user profiles.
Install it
npx shadcn@latest add https://ui.deso.com/r/profile-list.jsonSource
1import React from 'react';2import { ProfileCard } from './profile-card';3import { cn } from '@/lib/utils/deso';4import { ProfileCardProps } from './profile-card';56export interface ProfileListProps {7 profiles: ProfileCardProps[];8 variant?: 'cards' | 'seamless';9 profileVariant?: 'default' | 'compact';10 gap?: number;11 className?: string;12}1314export const ProfileList: React.FC<ProfileListProps> = ({15 profiles,16 variant = 'cards',17 profileVariant = 'default',18 gap = 16,19 className,20}) => {21 if (variant === 'seamless') {22 return (23 <div24 className={cn(25 'w-full mx-auto border border-border',26 className27 )}28 >29 {profiles.map((profile, index) => (30 <ProfileCard31 key={`${profile.publicKey}-${index}`}32 variant={profileVariant}33 {...profile}34 className={cn(35 'border-x-0 border-t-0 shadow-none rounded-none max-w-full last:border-b-0',36 )}37 />38 ))}39 </div>40 );41 }4243 // Default to 'cards' variant44 return (45 <div className={cn('flex flex-col', className)} style={{ gap: `${gap}px` }}>46 {profiles.map((profile, index) => (47 <ProfileCard48 key={`${profile.publicKey}-${index}`}49 variant={profileVariant}50 {...profile}51 />52 ))}53 </div>54 );55};
What it pulls in
Other registry items
Files it writes
More from deso-ui
All 47 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Action Menuaction-menu | deso-ui | Blocks | Free | no deps | |
| Confirmation Dialogconfirmation-dialog | deso-ui | Blocks | Free | no deps | |
| Copy Buttoncopy-button | deso-ui | Blocks | Free | no deps | |
| Editoreditor | deso-ui | Blocks | Free | no deps | |
| Editor Emoji Pickereditor-emoji-picker | deso-ui | Blocks | Free | no deps | |
| Editor Markdowneditor-markdown | deso-ui | Blocks | Free | no deps | |
| Editor Uploadeditor-upload | deso-ui | Blocks | Free | no deps | |
| Feed Listfeed-list | deso-ui | Blocks | Free | no deps |
