Molecules

Complex components composed of multiple atoms, providing more sophisticated UI patterns for the Alquimia UI system.

Layout Components

PageContainer

Container component with standardized padding and max-width settings. Customizable with tailwind classes.

<PageContainer className="px-[16px] md:px-[24px] lg:px-[120px]">
  <h1>Page Content</h1>
</PageContainer>

Dialog Components

AlertDialog

Modal dialog for important actions requiring user confirmation.

  <AlertDialog>
    <AlertDialogTrigger>
      <Button>Open</Button>
    </AlertDialogTrigger>
    <AlertDialogContent>
      <AlertDialogHeader>
        <AlertDialogTitle>Are you absolutely sure?</AlertDialogTitle>
        <AlertDialogDescription>
          This action cannot be undone. This will permanently delete your
          account and remove your data from our servers.
        </AlertDialogDescription>
      </AlertDialogHeader>
      <AlertDialogFooter>
        <AlertDialogCancel>Cancel</AlertDialogCancel>
        <AlertDialogAction>Continue</AlertDialogAction>
      </AlertDialogFooter>
    </AlertDialogContent>
  </AlertDialog>

Advanced navigation component with dropdown support.

Configurable sidebar navigation component.

Rating Components

RatingStars

Star-based rating component. Receives a numeric rating as comment (0-5), and a function to handle the rating.

RatingThumbs

Thumbs up/down rating component. Receives a string rating as comment, and a function to handle the rating.

RatingComment

Text-based rating component with comment support. Receives a string rating as comment, and a function to handle the rating.

Display Components

Slideshow component for cycling through elements.

CallOut

Highlighted information component. In this case, it's a chat message. The callout maps the messages to the role and the particular message.

Interactive Components

AssistantButton

Floating action button with hover-triggered suggestion menu. Commonly used for chat or help interfaces. Can be combined with the Drawer component to create a chat interface and trigger the drawer with the button, along with the suggestions.

Props:

  • icon: LucideIcon component to display in the button

  • clickAction: Function to execute on button click

  • className: Optional custom classes

  • suggestions: Array of suggestion objects with:

    • label: Text to display

    • icon: LucideIcon for the suggestion

    • action: Function to execute when suggestion is clicked

The component features a smooth animation when hovering, displaying a list of configurable suggestions that can trigger different actions.

Last updated