12:00 PM
Change language

Menu

Components

Frontend Hamroun provides a rich set of components to help you build interactive and responsive user interfaces.

Filter:

Component Overview

Explore all available components in the Frontend Hamroun library. Use the search and filter options above to find specific components by name, description, or tags.

Component Comparison

Compare different components to find the right one for your use case.

FeatureButtonIconButtonLinkButtonGlowButton
Keyboard Navigation
Icon Support
Loading State
Hover EffectsBasicBasicUnderlineAdvanced
Form Submit
Bundle Size ImpactSmallSmallSmallMedium

Interactive Examples

Try out some of our most popular components with these interactive examples. Toggle between light/dark themes and desktop/mobile views to see how they adapt.

Button Component

Code Example

playground.jsx

Button Variants

Card Component

Code Example

playground.jsx

Interactive Card

This card demonstrates the interactive 3D hover effect available in our card components.

Interactive Icons

Virtual DOM
Server Components
Client Components
API Reference

API Reference

Detailed documentation for component props and configuration options.

Button Props

PropTypeDefaultDescription
variant"primary" | "accent" | "subtle""primary"The visual style variant of the button
size"sm" | "md" | "lg""md"Controls the size of the button
disabledbooleanfalseWhen true, disables the button
iconReactNodeundefinedOptional icon to display inside the button
hrefstringundefinedIf provided, renders as an anchor tag
onClick() => voidundefinedFunction called when button is clicked
classNamestring""Additional CSS class names

Card Props

PropTypeDefaultDescription
titlestringundefinedCard title displayed at the top
descriptionstringundefinedOptional description text
imagestringundefinedOptional image URL to display
variant"default" | "hover" | "interactive""default"The visual style and behavior of the card
classNamestring""Additional CSS class names
childrenReactNodeundefinedContent to display inside the card

Component FAQs

Create custom components by defining a function or class that returns JSX. You can extend existing components using composition or inheritance patterns.

Yes, all components are fully typed with TypeScript definitions included in the package. This provides excellent IDE support and type safety.

Components accept className props for styling with CSS or Tailwind. You can also use the theme system, CSS modules, or styled-components.

Yes, all components follow WCAG guidelines with proper ARIA attributes, keyboard navigation support, and focus management.

Related Resources

Explore tutorials, videos, and additional documentation to master Frontend Hamroun components.

Component Popularity

See which components are most widely used in the community.

Button

4.9
95% usage34k downloads

Card

4.8
88% usage31k downloads

TextField

4.7
82% usage29k downloads

Modal

4.6
75% usage26k downloads

Getting Started with Components

Basic Component Usage

playground.jsx