Skip to content

Commit 18890d2

Browse files
committed
feat: add NativeSelect and Radio components with MUI integration
Signed-off-by: amitamrutiya <amitamrutiya2210@gmail.com>
1 parent da6328e commit 18890d2

4 files changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {
2+
NativeSelect as MuiNativeSelect,
3+
NativeSelectProps as MuiNativeSelectProps
4+
} from '@mui/material';
5+
import React from 'react';
6+
7+
export const NativeSelect = React.forwardRef<HTMLSelectElement, MuiNativeSelectProps>(
8+
(props, ref) => <MuiNativeSelect {...props} ref={ref} />
9+
);
10+
11+
export default NativeSelect;

src/base/NativeSelect/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { NativeSelect } from './NativeSelect';

src/base/Radio/Radio.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Radio as MuiRadio, RadioProps as MuiRadioProps } from '@mui/material';
2+
import React from 'react';
3+
4+
export const Radio = React.forwardRef<HTMLButtonElement, MuiRadioProps>((props, ref) => {
5+
return <MuiRadio ref={ref} {...props} />;
6+
});
7+
8+
export default Radio;

src/base/Radio/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Radio } from './Radio';

0 commit comments

Comments
 (0)