Animated wireframe sphere logo component
npm install @principal-ai/logo-componentAn animated wireframe sphere logo component for React.
``bash`
npm install @principal-ai/logo-component
`tsx
import { Logo } from '@principal-ai/logo-component';
function App() {
return (
height={150}
color="currentColor"
particleColor="#00ff00"
opacity={0.9}
/>
);
}
`
- width (number, default: 150): Width of the logo in pixelsheight
- (number, default: 150): Height of the logo in pixelscolor
- (string, default: "currentColor"): Color of the wireframe linesparticleColor
- (string, optional): Color of the animated particles (defaults to color)opacity
- (number, default: 0.9): Overall opacity of the logo
Use the provided script to render the SVG at a high resolution and optionally convert it to a PNG. The script will always write an SVG, and if sharp is installed it will also generate a PNG while keeping transparency intact.
`bashInstall sharp once if you plan to generate PNGs
npm install sharp
$3
-
--size – Output width and height in pixels (default: 1024).
- --color – Stroke color for the wireframe (default: #00ffff).
- --particle-color – Particle color (defaults to --color).
- --opacity <0-1> – Overrides the root SVG opacity (default: 1).
- --output – Destination directory (default: exports).
- --name – Base file name used for the exports (default: logo).
- --svg-only – Skip PNG generation, useful if sharp is not installed.
- --background – Fill color to apply behind the icon when rasterizing.
- --density-multiplier – Multiplies the rasterization density before resizing (default: 2`).MIT