DEV Community

edwin_ew
edwin_ew

Posted on

4 2

002 NextUI Avatar

import { Grid, Avatar } from '@nextui-org/react';
export default function App() {
    return (
      <Grid.Container gap={2}>
        <Grid>
          <Avatar 
            squared 
            src="https://i.pravatar.cc/150?u=a042581f4e29026024d" />
        </Grid>
        <Grid>
          <Avatar 
            squared 
            text="Junior" />
        </Grid>
        <Grid>
          <Avatar 
            squared 
            src="https://i.pravatar.cc/150?u=a042581f4e29026704d" />
        </Grid>
        <Grid>
          <Avatar 
            squared 
            text="Jane" />
        </Grid>
        <Grid>
          <Avatar 
            squared 
            src="https://i.pravatar.cc/150?u=a04258114e29026702d" />
        </Grid>
        <Grid>
          <Avatar 
            squared 
            text="Joe" />
        </Grid>
        <Grid>
        <Avatar text="JR" size="xs" />
      </Grid>
      <Grid>
        <Avatar
          src="https://i.pravatar.cc/150?u=a042581f4e29026024d"
          size="sm"
        />
      </Grid>
      <Grid>
        <Avatar text="Joe" size="md" />
      </Grid>
      <Grid>
        <Avatar
          src="https://i.pravatar.cc/150?u=a042581f4e29026704d"
          size="lg"
        />
      </Grid>
      <Grid>
        <Avatar text="John" size="xl" />
      </Grid>
      <Grid>
        <Avatar
          src="https://i.pravatar.cc/150?u=a04258114e29026702d"
          css={{ size: "$20" }}
        />
      </Grid>
      </Grid.Container>
    );
  }
Enter fullscreen mode Exit fullscreen mode

Image description

SurveyJS custom survey software

Build Your Own Forms without Manual Coding

SurveyJS UI libraries let you build a JSON-based form management system that integrates with any backend, giving you full control over your data with no user limits. Includes support for custom question types, skip logic, an integrated CSS editor, PDF export, real-time analytics, and more.

Learn more

Top comments (0)