npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

fhf-react

v2.0.5

Published

this react framework has React components and styles designed to facilitate the creation of responsive and flexible web layouts. Tailored for ease of use and versatility, the framework includes components for containers, flexible layouts, responsive imag

Downloads

48

Readme

Introduction

This framework provides a collection of reusable components and styles to help you build responsive and flexible web layouts effortlessly.

Components

ClearFix

A utility component for clearing floats and ensuring proper layout.

<ClearFix />

Container

A flexible container component with optional styles and class names.

<Container>{/* Your content goes here */}</Container>

FlexContainer

A flexible container for creating flex layouts.

<FlexContainer>{/* Flex items go here */}</FlexContainer>

FlexItem

A flexible container for creating flex layouts.

<FlexItem>{/* Your content goes here */}</FlexItem>

DivV

A responsive div component with visibility and hidden classes based on different screen sizes.

<DivV visibleIn="md" hiddenIn="lg">
	{/* Your content goes here */}
</DivV>

RespImg

A responsive image component that scales with the width of its container.

<RespImg src="your-image-url" alt="Image Alt Text" />

RespVideo

A responsive video component similar to RespImg.

<RespVideo src="your-video-url" />

RespGridFill

A responsive grid component with a specified column size and optional gap between items.

<RespGridFill size={100} gap={20}>
	{/* Grid items go here */}
</RespGridFill>

RespGridFit

Similar to RespGridFill, but with auto-fitting columns.

<RespGridFit size={100} gap={20}>
	{/* Grid items go here */}
</RespGridFit>

UnstyledList

An unordered list component with no list styles.

<UnstyledList>{/* List items go here */}</UnstyledList>

NavUl

A styled ul component for navigation items.

<NavUl>{/* Navigation items go here */}</NavUl>

RespHeading

A responsive heading component with different font sizes based on the heading level.

<RespHeading element="h2">{/* Your heading text goes here */}</RespHeading>

Circle

A circular container component.

<Circle>{/* Your content goes here */}</Circle>

ResBackgImg

A responsive background image component for specified HTML elements.

<RespBackgImg element="div" url="path/*">
	{/* Your content goes here */}
</RespBackgImg>

Styles

A responsive background image component for specified HTML elements.

import {
	styles,
	mergeStyles,
	styleHover,
	styleActive,
	mergeRefs,
} from "fhf-react";

const Comp = () => {
	const { refLightHover, styleLightHover } = styles.bgLightHover();
	const { refOfActive, styleOfActive } = styleActive(
		styles.extremeRounded,
		styles.bg("green")
	);

	return (
		<div
			ref={mergeRefs(refLightHover, refOfActive)}
			style={mergeStyles(
				styles.centerPosition,
				styles.fitContentHW,
				styleLightHover,
				styleOfActive
			)}>
			{/* Your centered content goes here */}
		</div>
	);
};

export default Comp;

Feel free to explore and use these components and styles to create modern and responsive user interfaces in your React projects.

Happy coding!