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

aura-beam-annotator

v0.7.8

Published

A React component to highlight and annotate text

Downloads

44

Readme

AuraBeam Annotator

Storybook

The AuraBeam Annotator library offers a set of React components designed to enhance the visual appeal of your application with annotated highlights and decorative elements. This library includes the AuraBeamAnnotator, AuraBeamAnnotatorContainer, and AuraBeamVerticalDivider components, each customizable with various props for color and positioning.

This library uses Storybook to manage its UI components, making it easy for developers to browse a live UI library and interact with each component's states without diving into the codebase.

Installation

To use the AuraBeam Components in your project, install the package via npm:

npm install aura-beam-annotator

Or if you prefer using yarn:

yarn add aura-beam-annotator

Import the css to your main component:

import "aura-beam-annotator/dist/tailwind.css";

Components

AuraBeamAnnotator

The AuraBeamAnnotator component adds a highlighted annotation to your text content, with an optional round circle and a customizable border color.

Props

  • title: The text to be displayed as the title.
  • positioning: Position of the highlight and title ("left" or "right").
  • children: The content to be displayed beneath the title.
  • color: Optional. The color key for background and border colors.

Usage

import {
  AuraBeamAnnotator,
  AuraBeamAnnotatorContainer,
} from "aura-beam-annotator";

<AuraBeamAnnotatorContainer>
  <AuraBeamAnnotator title="Your Title" positioning="left" color="blue">
    Your content here
  </AuraBeamAnnotator>
  ;
</AuraBeamAnnotatorContainer>;

AuraBeamAnnotatorContainer

A container component to wrap around one or multiple AuraBeamAnnotator components for consistent spacing and shadow effects.

Props

  • children: The AuraBeamAnnotator components to be included in the container.

Usage

import {
  AuraBeamAnnotator,
  AuraBeamAnnotatorContainer,
} from "aura-beam-annotator";

<AuraBeamAnnotatorContainer>
  <AuraBeamAnnotator title="First Title" positioning="left" color="red">
    First content
  </AuraBeamAnnotator>
  <AuraBeamAnnotator title="Second Title" positioning="right" color="green">
    Second content
  </AuraBeamAnnotator>
</AuraBeamAnnotatorContainer>;

AuraBeamVerticalDivider

A component to add a decorative vertical divider with customizable direction and color.

Props

  • direction: The direction of the divider ("l-to-r" when the upper component has positioning="left" and the second positioning="right; "r-to-l" when the upper component has positioning="right" and the second positioning="left").
  • color: Optional. The color key for the divider.
import {
  AuraBeamVerticalDivider,
  AuraBeamAnnotatorContainer,
} from "aura-beam-annotator";

<AuraBeamAnnotatorContainer>
  <AuraBeamVerticalDivider direction="l-to-r" color="purple" />;
</AuraBeamAnnotatorContainer>;

Examples of use:

Customization

The color props for these components are based on predefined color keys from Tailwind.

Contributing

We welcome contributions to the AuraBeam Components library. Please read our contributing guidelines before submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

This `README.md` template includes sections for installation instructions, descriptions of each component, their props, usage examples, customization tips, contributing guidelines, and licensing information. Adapt the content to fit the specifics of your package, such as the actual package name in the installation commands, the available props for each component, and any additional details you want to include about customization and contribution.