Skip to content

Commit 581a0b7

Browse files
committed
fix: fab variant
1 parent 2877e02 commit 581a0b7

File tree

1 file changed

+2
-1
lines changed
  • src/components/composites/Fab

1 file changed

+2
-1
lines changed

src/components/composites/Fab/Fab.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { usePropsResolution } from '../../../hooks/useThemeProps';
55
import { OverlayContainer } from '@react-native-aria/overlays';
66
import { useHasResponsiveProps } from '../../../hooks/useHasResponsiveProps';
77

8-
const Fab = (props: IFabProps, ref: any) => {
8+
const Fab = ({ variant, ...props }: IFabProps, ref: any) => {
99
const themeProps = usePropsResolution('FAB', props);
1010
const {
1111
label,
@@ -18,6 +18,7 @@ const Fab = (props: IFabProps, ref: any) => {
1818

1919
const fabComponent = (
2020
<Button
21+
variant={variant}
2122
{...placementProps[placement]}
2223
ref={ref}
2324
startIcon={icon}

0 commit comments

Comments
 (0)