Documentation
Learn how to use MarketIcons in your React and React Native projects.
Installation
Install the package using your preferred package manager:
# npmnpm install @marketicons/bist-react# yarnyarn add @marketicons/bist-react# pnpmpnpm add @marketicons/bist-react
Usage
Import and use the BistIcon component in your React application:
import { BistIcon } from '@marketicons/bist-react'function App() {return (<div><BistIcon name="THYAO" size={32} /><BistIcon name="GARAN" size={48} /></div>)}
API Reference
BistIcon Props (React)
Prop | Type | Default | Description |
---|---|---|---|
name | string | - | BIST company code (e.g., "THYAO") |
size | number | 24 | Icon size in pixels |
className | string | - | Additional CSS classes |
Examples
React with Tailwind CSS
<BistIconname="THYAO"size={32}className="group-hover:scale-110 transition-transform"/>
React Native with Styles
<BistIconname="GARAN"size={48}style={{ marginBottom: 8 }}/>
Package Installation
NPM
# Reactnpm install @marketicons/bist-react# React Nativenpm install @marketicons/bist-react-native
Yarn
# Reactyarn add @marketicons/bist-react# React Nativeyarn add @marketicons/bist-react-native