Code Monkey home page Code Monkey logo

react-components's People

Contributors

dependabot[bot] avatar ivanross avatar lucafalasco avatar marcofugaro avatar nkint avatar nofishlikeian avatar pietroguinea avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

pietroguinea

react-components's Issues

Toggle style enhancements

Would be super cool to have 5 possible inputs to pass:

  • width
  • height
  • default background color
  • active background color
  • toggle color

So that we can do easily this type of customization. The toggle size and its two positions (on/off) should then be dynamically calculated.
image
image

Nit on/off labels
IMG_A205294864F8-1

Originally posted by @aminalhazwani in #49 (comment)


Another point: would be maybe useful to add a LabeledToggle too.

Screen Recording 2020-09-10 at 15 44 20

Originally posted by @caesarsol in #49 (comment)

[StandardComponent] Introduce 'deafault' prop

In order to avoid the use of 'reset' property we were thinking about introduce a 'default' property that, if false, will assign a default style to the component or custom classes and style otherwise.

Autofocus on selected value

When having a very long list of values in a "single value" Select, it would be useful to scroll to the active value

Type of children seems too strict / has problems when passing JSX as children

Type 'Element[]' is missing the following properties from type 'ReactElement<any, string | ((props: any) => ReactElement<any, string | ... | (new (props: any) => Component<any, any, any>)>) | (new (props: any) => Component<any, any, any>)>': type, props, key

using v.0.4.1

Could probably be solved by changing the type to JSX.Element which should be more flexible ?

Seems to work fine on v0.3.7

Add native mobile select option

Is your feature request related to a problem? Please describe.

Would be great to have the possibility to trigger the mobile native UI for select

Describe the solution you'd like

Could be done by adding a new prop which renders the <select/> html tag instead of the custom element

Select: Avoid forwarding some props to the internal div

Steps to reproduce

Solution is to add all the props on line https://github.com/accurat/react-components/blob/master/src/components/Select/index.tsx#L51.

Actual behavior

Warning.

Expected behavior

No warnings.

Align handleClick and onClick

In Button handleClick props is used, in Radio onClick. I think it's better to align to the standard onClick props name so you don't have to use for these components the handleClick and for standard DOM elements onClick.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.