Skip to content

Commit

Permalink
adds borderedMultiValue prop to creatable select
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleshike committed May 21, 2024
1 parent 1497898 commit 2ef6002
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Select/CreatableSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ import PropTypes from 'prop-types';

import zStack from 'src/Styles/zStack';

import { defaultTheme, defaultStyles, SELECT_SIZES } from './styles';
import {
borderedMultiValueStyles, defaultTheme, defaultStyles, SELECT_SIZES,
} from './styles';

const CreatableSelect = ({
'aria-label': ariaLabel,
'aria-labelledby': ariaLabelledBy,
borderedMultiValue,
className,
components,
defaultValue,
Expand Down Expand Up @@ -50,6 +53,7 @@ const CreatableSelect = ({
placeholder={placeholder}
styles={{
...defaultStyles({ menuWidth, size }),
...borderedMultiValueStyles(borderedMultiValue),
menuPortal: (base) => (
modal ?
{ ...base, zIndex: zStack.zIndexModalBackdrop + 1 } :
Expand All @@ -65,6 +69,7 @@ const CreatableSelect = ({
CreatableSelect.propTypes = {
'aria-label': PropTypes.string,
'aria-labelledby': PropTypes.string,
borderedMultiValue: propTypes.bool,
className: PropTypes.string,
components: PropTypes.any,
defaultValue: PropTypes.object,
Expand Down Expand Up @@ -93,6 +98,7 @@ CreatableSelect.propTypes = {
CreatableSelect.defaultProps = {
'aria-label': undefined,
'aria-labelledby': undefined,
borderedMultiValue: undefined,
className: undefined,
components: undefined,
defaultValue: undefined,
Expand Down

0 comments on commit 2ef6002

Please sign in to comment.