Socket
Socket
Sign inDemoInstall

good-guy-caret

Package Overview
Dependencies
10
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    good-guy-caret

Good Guy Caret


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
2.70 MB
Created
Weekly downloads
 

Readme

Source



Good Guy Caret

Need your tooltip to point to the source of its existence? Got a select that ought to have a nice, juicy caret pointer at its right end? Good Guy Caret has got your back.

Good Guy Caret allows you to easily create carets of different styles and ratios in your React thingamajiggy:

import Caret, { Direction } from 'good-guy-caret'

<Caret direction={Direction.DOWN} size={10} ratio={2} fill="deeppink" />

This is handy when:

  • you need carets but don't want to include an entire icon font or library;
  • the icon font or library you're using have a filled or stroked version bot not the other, and because you are the Elvis of web development you want both;
  • the graphic designer naively puts a nice box shadow on the tooltip caret, and no one (not even you) wants to hear you explain that it's actually quite tricky: Good Guy Caret will shadow your box;
  • you've visited the CSS Triangles article on CSS-Tricks one too many times; or
  • you believe there are too many HTTP requests already roaming the Internet, and hence adhere to inline <svg> whenever you can.

Keywords

FAQs

Last updated on 15 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc