パッケージの詳細

@icons-pack/react-simple-icons

icons-pack324.1kMIT13.2.0

This package provides the Simple Icons packaged as a set of React components.

react, simple-icons, brands, icons

readme

react simple icons # react-simple-icons This package provides the Simple Icons 15.1.0 packaged as a set of React components. www.npmjs.com! downloads licence

Inestallation

Install the package in your project directory with:

// with yarn
yarn add @icons-pack/react-simple-icons

// with npm
npm add @icons-pack/react-simple-icons

// with pnpm
pnpm add @icons-pack/react-simple-icons

// with bun
bun add @icons-pack/react-simple-icons

TypeScript Support

Usage

You can use simpleicons.org to find a specific icon. When importing an icon, keep in mind that the names of the icons are upperCamelCase , for instance:

  • Material Design is exposed as { SiMaterialdesign } from @icons-pack/react-simple-icons
  • azure devOps is exposed as { SiAzuredevops } from @icons-pack/react-simple-icons

Demo

Edit codesandbox

Basic example

import { SiReact } from '@icons-pack/react-simple-icons';

function BasicExample() {
  return <SiReact color='#61DAFB' size={24} />;
}

Change title

@icons-pack/react-simple-icons provides a default title referring to the component name

The <title> element provides an accessible, short-text description of any SVG container element or graphics element.

import { SiReact } from '@icons-pack/react-simple-icons';

// title default "React"
function ChangeTitle() {
  return <SiReact title='My title' color='#61DAFB' size={24} />;
}

Use default color

Set color as default to use the default color for each icon

import { SiReact } from '@icons-pack/react-simple-icons';

function DefaultColorExample() {
  return <SiReact color='default' size={24} />;
}

Use default color as hex

Append Hex to the icon name to use the default color as hex string

import { SiReact, SiReactHex } from '@icons-pack/react-simple-icons';

function DefaultColorExample() {
  return <SiReact color={SiReactHex} size={24} />;
}

Custom styles

import { SiReact } from '@icons-pack/react-simple-icons';

function CustomStyles() {
  return <SiReact className='myStyle' />;
}
.myStyle {
  width: 35px;
  height: 35px;
}

更新履歴

Changelog

13.2.0

Minor Changes

13.1.0

Minor Changes

13.0.0

Major Changes

12.9.0

Minor Changes

12.8.0

Minor Changes

12.7.0

Minor Changes

12.6.0

Minor Changes

12.5.0

Minor Changes

12.4.0

Minor Changes

12.3.0

Minor Changes

12.2.0

Minor Changes

12.1.0

Minor Changes

12.0.0

Major Changes

Minor Changes

11.2.0

Minor Changes

11.1.0

Minor Changes

11.0.1

Patch Changes

11.0.0

Major Changes

10.2.0

Minor Changes

10.1.0

Minor Changes

10.0.0

Major Changes

9.6.1

Patch Changes

  • f5aa8a5 Thanks @wootsbot! - Revert simple-icons breaking change and publish patch version

9.6.0

Minor Changes

9.5.0

Minor Changes

9.4.1

Patch Changes

  • 3807d23 Thanks @wootsbot! - fix: remove onPointerEnterCapture & onPointerLeaveCapture

9.4.0

Minor Changes

9.3.0

Minor Changes

9.2.0

Minor Changes

9.1.0

Minor Changes

9.0.1

Patch Changes

9.0.0

Major Changes

  • #193 1f29288 Thanks @wootsbot! - The way of creating the icons has been changed to better export the types.

Patch Changes

9.0.0-beta.0

Major Changes

  • b5fdad8 Thanks @wootsbot! - The way of creating the icons has been changed to better export the types.

9.0.0-v9.1

Patch Changes

9.0.0-v9.0

Major Changes

  • 8560140 Thanks @wootsbot! - The way of creating the components has been changed to better export the types

8.0.1

Patch Changes

8.0.0

Major Changes

Minor Changes

Patch Changes

8.0.0-beta.4

Patch Changes

8.0.0-beta.3

Patch Changes

8.0.0-beta.2

Patch Changes

8.0.0-beta.1

Minor Changes

8.0.0-beta.0

Major Changes

7.2.0

Minor Changes

7.1.1

Patch Changes

7.1.0

Minor Changes

7.0.0

Major Changes

  • 568819a Thanks @wootsbot! - sync it with breaking changes that introduced simple icons in version 7.0.0

6.3.0

Minor Changes

6.2.0

Minor Changes

6.1.0

Minor Changes

6.0.0

Major Changes

5.11.0

Minor Changes

5.10.0

Minor Changes

5.9.0

Minor Changes

5.8.0

Minor Changes

5.7.0

Minor Changes

5.6.0

Minor Changes

5.5.0

Minor Changes

5.4.0

Minor Changes

5.3.0

Minor Changes

5.2.0

Minor Changes

5.1.2

Patch Changes

  • dca9bb1 Thanks @wootsbot! - extend component types to use ComponentPropsWithoutRef<'svg'>

5.1.1

Patch Changes

5.1.0

Minor Changes

5.0.0

Major Changes

4.7.2

Patch Changes

4.7.1

Patch Changes

  • 39de453: Update package simple-icons

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

4.7.0 (2022-05-12)

Features

  • use simple-icons version simple-icons (5b0af08)

4.3.0 (2021-05-15)

4.2.0 (2021-04-11)

4.1.0 (2021-02-19)

4.6.1 (2021-07-13)

Bug Fixes

  • fixed add push: branches: - master (d01e4c4)
  • fixed step publish (7bd68c8)

4.6.0 (2021-07-11)

Features

  • simple-icons: updated package simple-icons@5.6.0 (d9e0a93)
  • simple-icons: updated package simple-icons5.4.0 (b92a967)

Bug Fixes

  • config: fixed config .travis (b4cbda4)

4.5.1 (2021-06-27)

4.5.0 (2021-06-27)

Features

  • simple-icons: updated package simple-icons5.4.0 (b92a967)
  • update simple-icons (d160e7a)

1.0.2 (2019-08-04)

Note: Version bump only for package @icons-pack/simple-icons