v7.0.0-beta.1 release
This commit is contained in:
commit
6595fd0eb5
3967 files changed
+1875383
No files matched your search
@@ -0,0 +1,21 @@
|
||||
import React from 'react';
|
||||
|
||||
export interface OptionProps extends React.OptionHTMLAttributes<HTMLOptionElement> {}
|
||||
|
||||
/**
|
||||
* 기본 option 컴포넌트 (Select 내부에서 사용)
|
||||
*/
|
||||
export const Option: React.FC<OptionProps> = ({
|
||||
children,
|
||||
className = '',
|
||||
...props
|
||||
}) => {
|
||||
return (
|
||||
<option
|
||||
className={className}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</option>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user