Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexanderwallin/good-guy-caret

Good Guy Caret helps you create carets for your React tooltips and other things πŸ”ΊπŸ”»
https://github.com/alexanderwallin/good-guy-caret

Last synced: 4 days ago
JSON representation

Good Guy Caret helps you create carets for your React tooltips and other things πŸ”ΊπŸ”»

Awesome Lists containing this project

README

        







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:

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

```

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](https://css-tricks.com/snippets/css/css-triangle/) 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 `` whenever you can.