### Install Solar Icons for Nuxt
Source: https://solar-icons.vercel.app/docs/getting-started/installation
Use the dedicated Nuxt module for seamless integration, including auto-import capabilities and global configuration.
```shell
nuxi module add @solar-icons/nuxt
```
--------------------------------
### Install Solar Icons for React
Source: https://solar-icons.vercel.app/docs/getting-started/installation
Install the standard React package for maximum versatility or the performance package for reduced bundle size. These packages allow for dynamic style changes or single-style integration respectively.
```shell
npm install @solar-icons/react
```
```shell
npm install @solar-icons/react-perf
```
--------------------------------
### Install Solar Icons Package
Source: https://solar-icons.vercel.app/docs/packages/react-native
Commands to install the Solar Icons library using various package managers.
```bash
npm install @solar-icons/react-native
```
--------------------------------
### Install Solar Icons for Vue
Source: https://solar-icons.vercel.app/docs/getting-started/installation
Install the official Vue package to access the full feature set of Solar Icons, including multi-style support and category imports.
```shell
npm install @solar-icons/vue
```
--------------------------------
### Import Icons from Style Entry Points (Performance Package)
Source: https://solar-icons.vercel.app/docs/getting-started/usage
Demonstrates importing icons directly from style-specific entry points in the '@solar-icons/react-perf' package, such as '@solar-icons/react-perf/bold'. This approach can lead to cleaner import statements.
```javascript
import { Home } from '@solar-icons/react-perf/bold'
import { Settings } from '@solar-icons/react-perf/linear'
export default function MyComponent() {
return (
)
}
```
--------------------------------
### Implement Server-Side Rendering with Solar Icons
Source: https://solar-icons.vercel.app/docs/advanced/server-side-rendering
Demonstrates how to import icons from the /ssr entry point to create pure, stateless server components. This approach avoids React Context and is ideal for optimizing server-rendered HTML.
```javascript
import { ArrowUp } from '@solar-icons/react/ssr'
export default function ServerComponent() {
return (
My Page
)
}
```
--------------------------------
### Install @solar-icons/svelte Package
Source: https://solar-icons.vercel.app/docs/packages/svelte
Installs the @solar-icons/svelte package using npm. This is the first step to using Solar Icons in your Svelte project.
```bash
npm install @solar-icons/svelte
```
--------------------------------
### Vue Plugin Installation for Global Configuration
Source: https://solar-icons.vercel.app/docs/packages/vue
Illustrates installing the Solar Icons package as a Vue plugin for global configuration. This method allows setting default icon properties when initializing the Vue application.
```javascript
import { createApp } from 'vue'
import { SolarIconsPlugin } from '@solar-icons/vue'
const app = createApp(App)
app.use(SolarIconsPlugin, {
color: 'currentColor',
size: '24',
weight: 'Linear',
mirrored: false,
})
app.mount('#app')
```
--------------------------------
### Import and Use Icons (Performance Package)
Source: https://solar-icons.vercel.app/docs/getting-started/usage
Illustrates importing style-specific icons like 'HomeBold' and 'HomeLinear' from the '@solar-icons/react-perf' package. This package is optimized for smaller bundle sizes by providing individual icon components for each style.
```javascript
import { HomeBold, HomeLinear } from '@solar-icons/react-perf'
export default function MyComponent() {
return (
)
}
```
--------------------------------
### Import and Use Home Icon (Standard Package)
Source: https://solar-icons.vercel.app/docs/getting-started/usage
Demonstrates how to import the 'Home' icon from the '@solar-icons/react' package and use it as a React component. This package allows switching between icon styles using the 'weight' prop.
```javascript
import { Home } from '@solar-icons/react'
export default function MyComponent() {
return
}
```
--------------------------------
### Global Configuration with SolarProvider Component
Source: https://solar-icons.vercel.app/docs/packages/nuxt
Example of using the `SolarProvider` component to set global default configurations for Solar Icons within your Nuxt application. This allows overriding module-level defaults for specific parts of your application.
```html
```
--------------------------------
### Advanced TypeScript Integration
Source: https://solar-icons.vercel.app/docs/packages/react-native
Examples of using icon refs with Svg types and creating a custom wrapper component for dynamic icon rendering.
```typescript
import type { IconProps, Icon } from '@solar-icons/react-native';
import { useRef } from 'react';
import { Svg } from 'react-native-svg';
const MyComponent = () => {
const iconRef = useRef