Skip to content

Commit e5903f1

Browse files
refactor(fontawesome): renamed type and export definitions
1 parent ad1f8d4 commit e5903f1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/empty-teachers-sniff.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@yamada-ui/fontawesome': patch
3+
---
4+
5+
Renamed type and export definitions.

packages/fontawesome/src/fontawesome-icon.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Icon as UIIcon, IconProps as UIIconProps } from '@yamada-ui/icon'
55
import { cx } from '@yamada-ui/utils'
66
import { useMemo } from 'react'
77

8-
type FontAwesomeIconOptions = {
8+
type IconOptions = {
99
/**
1010
* The icon of the font awesome.
1111
* Check the docs to see the icon of possible modifiers you can pass.
@@ -19,9 +19,9 @@ type FontAwesomeIconOptions = {
1919
size?: CSSUIProps['fontSize']
2020
}
2121

22-
export type FontAwesomeIconProps = UIIconProps & FontAwesomeIconOptions
22+
export type IconProps = UIIconProps & IconOptions
2323

24-
export const Icon = forwardRef<FontAwesomeIconProps, 'svg'>(
24+
export const Icon = forwardRef<IconProps, 'svg'>(
2525
({ className, icon, size: fontSize, __css, ...rest }, ref) => {
2626
const css = useMemo(
2727
() => ({

0 commit comments

Comments
 (0)