diff --git a/.changeset/real-fans-tap.md b/.changeset/real-fans-tap.md new file mode 100644 index 00000000000..f419b1ad11d --- /dev/null +++ b/.changeset/real-fans-tap.md @@ -0,0 +1,5 @@ +--- +"@primer/react": minor +--- + +Convert TextInput to use data attributes diff --git a/packages/react/src/Select/Select.tsx b/packages/react/src/Select/Select.tsx index 7efd064982d..25260fb8eaf 100644 --- a/packages/react/src/Select/Select.tsx +++ b/packages/react/src/Select/Select.tsx @@ -5,6 +5,8 @@ import type {StyledWrapperProps} from '../internal/components/TextInputWrapper' import TextInputWrapper from '../internal/components/TextInputWrapper' import {toggleStyledComponent} from '../internal/utils/toggleStyledComponent' import {useFeatureFlag} from '../FeatureFlags' +import type {ForwardRefComponent as PolymorphicForwardRefComponent} from '../utils/polymorphic' + import classes from './Select.module.css' export type SelectProps = Omit< @@ -167,7 +169,7 @@ const Select = React.forwardRef( ) }, -) +) as PolymorphicForwardRefComponent<'select', SelectProps> const Option: React.FC & {value: string}>> = props => (