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

@vx/text

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vx/text

vx text

  • 0.0.127
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
63K
increased by21.94%
Maintainers
1
Weekly downloads
 
Created
Source

@vx/text

npm install --save @vx/text

The @vx/text package contains components useful for adding labels to your graphs.

<TextOutline />

TextOutline can add an outline around your text to help it be more readable.

Example

text outline picture

import { TextOutline } from '@vx/text';

<TextOutline
  fontSize={10}
  x={x}
  y={y}
  dy={'.5em'}
  textAnchor={'end'}
  fill="black"
  outlineStroke={"white"}
  outlineStrokeWidth={3}
  fontFamily={"Roboto Mono"}
>
  {"Woo text!"}
</TextOutline>

Properties

NameDefaultTypeDescription
x0numberThe x coordinate position.
y0numberThe y coordinate position.
dx0numberThe x-offset.
dy0numberThe y-offset.
fontSize12numberThe fontSize for the text.
fontFamilyArialstringThe fontFamily for the text.
fillwhitestringThe fill color for the inner text.
strokenonestringThe stroke color for the inner text.
strokeWidth0numberThe strokeWidth for the inner text.
outlineFillwhitestringThe fill color for the outline.
outlineStrokemagentastringThe stroke color of the outline.
outlineStrokeWidth3numberThe stroke width in pixels of the outline.
textAnchorstartstringThe svg textAnchor for the text.
classNamestringA classname to be applied to both the inner and outer text.

Source For Components

Keywords

FAQs

Package last updated on 05 Jul 2017

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc