Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export indicator icons for use in customizations #2535

Merged
merged 1 commit into from
Apr 20, 2018

Conversation

jesstelford
Copy link
Contributor

Enables things such as changing the size of the indicator icon, like so:

// @flow

import React from 'react';
import Select, { components } from 'react-select';

const DropdownIndicator = (props) => {
  return (
    <components.DropdownIndicator {...props}>
      <components.DownChevron size="2rem" />
    </components.DropdownIndicator>
  );
};

export default () => (
  <Select
    components={{ DropdownIndicator }}
    options={[...]}
  />
);

eg:
screen shot 2018-04-20 at 10 39 57 pm

@jesstelford
Copy link
Contributor Author

Welp, I'm pretty sure I didn't npm uninstall eslint, so not sure what's up with Travis :/

@JedWatson
Copy link
Owner

Thanks @jesstelford!

I'm not sure what's up with the failing builds at the moment, it actually looks like an issue with Travis at the moment. Hoping it'll clear up (has been failing for a few hours) but I'll dig in further if it doesn't.

@JedWatson JedWatson merged commit 64ef10c into JedWatson:v2 Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants