New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-3d-text

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-3d-text

Hello My name is Hunmok

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

react-3d-text

A ReactJS component to render a 3D Sphere Text.

By installing this component and writing only a data you can obtain 3D Sphere Text

Installation

Install react-3d-text with npm:

npm install react-3d-text

Basic Usage

import { SphereText, Sphere3DText ... } from '@react-3d-text'

// Example items
const TEXT_ARR = [
  'CSS',
  'RN',
  'Firebase',
  'Storybook',
  'Next.js',
  'JS/TS',
  'gsap',
  'React',
  'Graphql',
  'Redux',
  'Tailwind',
  'Recoil',
  'Python',
  'Java',
  'npm',
  'git',
  'Node JS',
  'ES5/ES6',
  'RTK',
  'CSS',
  'RN',
  'Firebase',
  'Storybook',
  'Next.js',
  'JS/TS',
  'gsap',
  'React',
  'Graphql',
  'Redux',
  'Tailwind',
  'Recoil',
  'Python',
  'Java',
  'npm',
  'git',
  'Node JS',
  'ES5/ES6',
];


SphereText

react-sphere-text

Props

type Props = {
  /** List of strings to be drawn on a sphere */
  textList: string[];
  /** The width and height of canvas */
  width?: string;
  height?: string;
  /** Sphere radius */
  radius?: number;
  /** The distance from the camera to the sphere .*/
  distance?: number;
  /** The size of text */
  fontSize?: number;
  /** Default color of the text */
  fontColor?: string;
  /** Color of the text when mouse over the text.  */
  hoverColor?: string;
};

Usage

import { SphereText } from 'react-3d-text';

function Items() {
  return <SphereText textList={TEXT_ARR} width='1000px' height='500px' />;
}

Sphere3DText

react-sphere-3d-text

Props

type Props = {
  /** List of strings to be drawn on a sphere */
  textList: string[];
  /** The width and height of canvas */
  width?: string;
  height?: string;
  /** Sphere radius */
  radius?: number;
  /** The distance from the camera to the sphere .*/
  distance?: number;
  /** The size of text */
  fontSize?: number;
  /** Default color of the text */
  fontColor?: string = 1.2;
  /** Sphere auto rotate */
  autoRotate?: boolean = false;
  /** Text rotation */
  defaultRotation?: { x: number; y: number; z: number } = {
    x: 15,
    y: 15,
    z: 0,
  };
  /** Text always face to camera */
  alwaysFaceCamera?: boolean = true;
};

Usage

import { Sphere3DText } from 'react-3d-text';

function Items() {
  return <Sphere3DText textList={TEXT_ARR} width='1000px' height='500px' />;
}

Keywords

react

FAQs

Package last updated on 15 Aug 2023

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