New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

good-guy-caret

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good-guy-caret

Good Guy Caret

2.0.0
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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

react

FAQs

Package last updated on 15 Jun 2018

Did you know?

Socket

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