Widget Components

Reusable sidebar components for your blog. Simple, clean, and ready to use.

Introduction

These widgets are designed to enhance your blog's sidebar with useful information and navigation. Each component is built with DaisyUI and follows consistent styling patterns.

What Are Widgets?

Widgets are reusable UI components that display specific information or functionality in your sidebar. They help readers navigate your content and discover related posts.

Available Widgets

📌 Profile Widget

Displays author information with avatar, stats, and social links. Perfect for introducing yourself to readers.

import Profile from "../components/widgets/Profile.astro";

<Profile />

📂 Categories Widget

Lists all post categories with count badges. Helps readers browse content by topic.

import Categories from "../components/widgets/Categories.astro";

<Categories maxDisplay=6 />

🏷️ Tags Widget

Displays popular tags in a compact badge format. Great for content discovery.

import Tags from "../components/widgets/Tags.astro";

<Tags maxDisplay=15 />

How to Use

1. Import the Widget

import Profile from "../components/widgets/Profile.astro";

2. Add to Your Layout

Place widgets in your sidebar or any other section:

<div class="sidebar">
  <Profile />
  <Categories />
  <Tags />
</div>

3. Customize with Props

Most widgets accept optional props for customization:

  • class - Custom CSS classes
  • maxDisplay - Limit number of items

Widget Features

Zero Dependencies

No external icon libraries needed, uses emoji and simple SVG

🎨

DaisyUI Styled

Consistent styling with DaisyUI components

📱

Responsive Design

Works perfectly on all screen sizes

Performance

Optimized rendering and minimal overhead

📌

Profile Widget

Display author information with avatar, stats, and social links

Author Info
Social Links
📂

Categories Widget

Browse posts by category with article counts and quick navigation

Navigation
Filtering
🏷️

Tags Widget

Explore content through tags with compact badge design

Tag Cloud
Discovery