Skip to content

Commit 2e88bee

Browse files
committed
fix(Select): add placeholder prop
1 parent 4c7f477 commit 2e88bee

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Select.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {SxProp, merge, BetterSystemStyleObject} from './sx'
66
export type SelectProps = Omit<
77
Omit<React.ComponentPropsWithoutRef<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant'>,
88
'multiple' | 'hasLeadingVisual' | 'hasTrailingVisual' | 'as'
9-
>
9+
> & {
10+
placeholder?: string
11+
}
1012

1113
const arrowRightOffset = '4px'
1214

src/Select/Select.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ import TextInputWrapper, {StyledWrapperProps} from '../internal/components/TextI
55
export type SelectProps = Omit<
66
Omit<React.ComponentPropsWithoutRef<'select'>, 'size'> & Omit<StyledWrapperProps, 'variant'>,
77
'multiple' | 'hasLeadingVisual' | 'hasTrailingVisual' | 'as'
8-
>
8+
> & {
9+
placeholder?: string
10+
}
911

1012
const arrowRightOffset = '4px'
1113

0 commit comments

Comments
 (0)