Giter VIP home page Giter VIP logo

Comments (3)

MPieter avatar MPieter commented on April 27, 2024 3

Just looking for some clarification on this topic.

The proper way of rendering a justified ButtonGroup is thus:

            <ButtonGroup justified>
                <ButtonGroup>
                        <Button>Button 1</Button>
                </ButtonGroup>
                <ButtonGroup>
                        <Button>Button 2</Button>
                </ButtonGroup>
                <ButtonGroup>
                        <Button>Button 3</Button>
                </ButtonGroup>
                <ButtonGroup>
                        <Button>Button 4</Button>
                </ButtonGroup>
            </ButtonGroup>

Isn't this really verbose ? Isn't this something that could be taken care of by the react-bootstrap library?

And maybe we should update the docs on this topic ?The current version could use some clarification: http://react-bootstrap.github.io/components.html#btn-groups-justified

from react-bootstrap.

kastork avatar kastork commented on April 27, 2024

Arg, never mind.

Proper use involves nested ButtonGroup components.

from react-bootstrap.

taion avatar taion commented on April 27, 2024

No, that's not right. Follow the example on the components page. It looks like the OP doesn't understand .btn-group.btn-group-justified means - the markup we render follows what's in upstream Bootstrap.

from react-bootstrap.

Related Issues (20)

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.