A new theme for bootstrap.
npm install --save @ui-kit/css
This is a paragraph of text. Here's an inline link.
This is a small paragraph of text. Here's an inline link.
class NavbarDefault extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Navbar fluid> <Navbar.Header> <Navbar.Brand>Brand</Navbar.Brand> <Navbar.Toggle /> </Navbar.Header> <Navbar.Collapse> <Nav activeKey={this.state.activeKey} onSelect={this.handleClick} > <NavItem eventKey={1} href="#"> Link </NavItem> <NavItem eventKey={2} href="#"> Link </NavItem> <NavDropdown eventKey={3} title="Dropdown" id="basic-nav-dropdown" > <MenuItem eventKey={3.1}>Action</MenuItem> <MenuItem eventKey={3.2}>Another action</MenuItem> <MenuItem eventKey={3.3}>Something else here</MenuItem> <MenuItem divider /> <MenuItem header>Nav Header</MenuItem> <MenuItem eventKey={3.3}>Separated link</MenuItem> </NavDropdown> </Nav> </Navbar.Collapse> </Navbar> ); } }
<ButtonToolbar> <Button bsStyle="default" bsSize="large"> Default </Button> <Button bsStyle="info" bsSize="large"> Info </Button> <Button bsStyle="primary" bsSize="large"> Primary </Button> <Button bsStyle="link" bsSize="large"> Link </Button> </ButtonToolbar>
<ButtonToolbar> <Button bsStyle="default">Default</Button> <Button bsStyle="info">Info</Button> <Button bsStyle="primary">Primary</Button> <Button bsStyle="link">Link</Button> </ButtonToolbar>
<ButtonToolbar> <Button bsStyle="default" disabled> Default </Button> <Button bsStyle="info" disabled> Info </Button> <Button bsStyle="primary" disabled> Primary </Button> <Button bsStyle="link" disabled> Link </Button> </ButtonToolbar>
<ButtonToolbar> <Button bsStyle="default" bsSize="small"> Default </Button> <Button bsStyle="info" bsSize="small"> Info </Button> <Button bsStyle="primary" bsSize="small"> Primary </Button> <Button bsStyle="link" bsSize="small"> Link </Button> </ButtonToolbar>
<ButtonToolbar> <Button bsStyle="default" bsSize="xsmall"> Default </Button> <Button bsStyle="info" bsSize="xsmall"> Info </Button> <Button bsStyle="primary" bsSize="xsmall"> Primary </Button> <Button bsStyle="link" bsSize="xsmall"> Link </Button> </ButtonToolbar>
<ButtonGroup bsSize="large"> <Button>Left</Button> <Button>Middle</Button> <Button>Right</Button> </ButtonGroup>
<ButtonGroup> <Button>Left</Button> <Button>Middle</Button> <Button>Right</Button> </ButtonGroup>
<ButtonGroup bsSize="small"> <Button>Left</Button> <Button>Middle</Button> <Button>Right</Button> </ButtonGroup>
<ButtonGroup bsSize="xsmall"> <Button>Left</Button> <Button>Middle</Button> <Button>Right</Button> </ButtonGroup>
<ButtonToolbar> <ButtonGroup> <Button>Left</Button> <Button>Middle</Button> <Button>Right</Button> </ButtonGroup> <ButtonGroup> <Button> <Glyphicon glyph="copy" /> Copy </Button> <Button> <Glyphicon glyph="paste" /> Paste </Button> <Button> <Glyphicon glyph="scissors" /> Cut </Button> </ButtonGroup> <ButtonGroup> <Button> <Glyphicon glyph="cog" /> </Button> </ButtonGroup> </ButtonToolbar>
<form> <FormGroup> <ControlLabel>Username</ControlLabel> <InputGroup> <InputGroup.Addon> <Glyphicon glyph="user" /> </InputGroup.Addon> <FormControl type="text" placeholder="Username" /> </InputGroup> </FormGroup> <FormGroup> <ControlLabel>Full price</ControlLabel> <InputGroup> <InputGroup.Addon>$</InputGroup.Addon> <FormControl type="text" /> <InputGroup.Addon>.00</InputGroup.Addon> </InputGroup> </FormGroup> <FormGroup> <InputGroup> <FormControl type="text" /> <InputGroup.Addon> <Glyphicon glyph="music" /> </InputGroup.Addon> </InputGroup> </FormGroup> <FormGroup> <InputGroup> <InputGroup.Button> <Button>Before</Button> </InputGroup.Button> <FormControl type="text" /> </InputGroup> </FormGroup> <FormGroup> <InputGroup> <FormControl type="text" /> <DropdownButton componentClass={InputGroup.Button} id="input-dropdown-addon" title="Action" > <MenuItem key="1">Item</MenuItem> </DropdownButton> </InputGroup> </FormGroup> </form>
<Breadcrumb> <Breadcrumb.Item href="#" active> Home </Breadcrumb.Item> </Breadcrumb> <Breadcrumb> <Breadcrumb.Item href="#">Home</Breadcrumb.Item> <Breadcrumb.Item href="#" active> Library </Breadcrumb.Item> </Breadcrumb> <Breadcrumb> <Breadcrumb.Item href="#">Home</Breadcrumb.Item> <Breadcrumb.Item href="#">Library</Breadcrumb.Item> <Breadcrumb.Item active>Data</Breadcrumb.Item> </Breadcrumb>
class PaginationDefault extends React.Component { constructor(props) { super(props); this.state = { activePage: 2 }; this.handleClick = this.handleClick.bind(this); } handleClick(page) { this.setState({ activePage: page }); } render() { return ( <Pagination items={10} activePage={this.state.activePage} onSelect={this.handleClick} /> ); } }
class PaginationSmall extends React.Component { constructor(props) { super(props); this.state = { activePage: 2 }; this.handleClick = this.handleClick.bind(this); } handleClick(page) { this.setState({ activePage: page }); } render() { return ( <Pagination prev next first last ellipsis boundaryLinks items={20} maxButtons={5} activePage={2} bsSize="small" activePage={this.state.activePage} onSelect={this.handleClick} /> ); } }
<Pager> <Pager.Item previous href="#"> <Glyphicon glyph="arrow-left" /> Previous Page </Pager.Item> <Pager.Item next href="#"> Next Page <Glyphicon glyph="arrow-right" /> </Pager.Item> </Pager>
class PillsDefault extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Nav bsStyle="pills" activeKey={this.state.activeKey} onSelect={this.handleClick} > <NavItem eventKey={1}>Home</NavItem> <NavItem eventKey={2}>Profile</NavItem> <NavItem eventKey={3} href="#"> Messages </NavItem> </Nav> ); } }
class PillsJustified extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Nav bsStyle="pills" activeKey={this.state.activeKey} onSelect={this.handleClick} justified > <NavItem eventKey={1}>Home</NavItem> <NavItem eventKey={2}>Profile</NavItem> <NavItem eventKey={3} href="#"> Messages </NavItem> </Nav> ); } }
class PillsDisabled extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Nav bsStyle="pills" activeKey={this.state.activeKey} onSelect={this.handleClick} justified disabled > <NavItem eventKey={1}>Home</NavItem> <NavItem eventKey={2}>Profile</NavItem> <NavItem eventKey={3} href="#"> Messages </NavItem> </Nav> ); } }
class PillsDisabled extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Nav bsStyle="pills" activeKey={this.state.activeKey} onSelect={this.handleClick} stacked > <NavItem eventKey={1}>Home</NavItem> <NavItem eventKey={2}>Profile</NavItem> <NavItem eventKey={3} href="#"> Messages </NavItem> </Nav> ); } }
class PillsWithBadge extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Nav bsStyle="pills" activeKey={this.state.activeKey} onSelect={this.handleClick} stacked > <NavItem eventKey={1}> Home <Badge className="pull-right">42</Badge> </NavItem> <NavItem eventKey={2}>Profile</NavItem> <NavItem eventKey={3} href="#"> Messages <Badge className="pull-right">24</Badge> </NavItem> </Nav> ); } }
<Label>Default</Label> <Label bsStyle="info">Info</Label> <Label bsStyle="warning">Warning</Label>
<Panel header="Panel header"> Panel body text </Panel>
<Panel bsStyle="primary" header="Panel header"> Panel body text </Panel>
<Panel bsStyle="primary" header="Panel header"> Panel body text </Panel>
<Panel bsStyle="primary" header="Panel header"> Panel body text </Panel>
<Tabs defaultActiveKey={1} animation={false}> <Tab eventKey={1} title={<div>Home</div>}> Home content </Tab> <Tab eventKey={2} title={<div>Profile</div>}> Profile content </Tab> <Tab eventKey={3} title={<div>Messages</div>}> Messages content </Tab> </Tabs>
class TabsControlled extends React.Component { constructor(props) { super(props); this.state = { activeKey: 1 }; this.handleClick = this.handleClick.bind(this); } handleClick(key) { this.setState({ activeKey: key }); } render() { return ( <Tabs activeKey={this.state.activeKey} onSelect={this.handleClick} animation={false} > <Tab eventKey={1} title={<div>Home</div>}> Home content </Tab> <Tab eventKey={2} title={<div>Profile</div>}> Profile content </Tab> <Tab eventKey={3} title={<div>Messages</div>}> Messages content </Tab> </Tabs> ); } }
<Tab.Container defaultActiveKey="first"> <Row className="clearfix"> <Col sm={12}> <Nav bsStyle="tabs"> <NavItem eventKey="first">Home</NavItem> <NavItem eventKey="second">Profile</NavItem> <NavDropdown eventKey="3" title="Messages"> <MenuItem eventKey="3.1">Inbox</MenuItem> <MenuItem eventKey="3.2">Alerts</MenuItem> <MenuItem divider /> <MenuItem eventKey="3.3">Send Message</MenuItem> </NavDropdown> </Nav> </Col> <Col sm={12}> <Tab.Content animation={false}> <Tab.Pane eventKey="first">Home content</Tab.Pane> <Tab.Pane eventKey="second"> Profile content </Tab.Pane> <Tab.Pane eventKey="3.1">Inbox content</Tab.Pane> <Tab.Pane eventKey="3.2">Alerts content</Tab.Pane> <Tab.Pane eventKey="3.3"> Send message content </Tab.Pane> </Tab.Content> </Col> </Row> </Tab.Container>
<Tab.Container defaultActiveKey="first"> <Row className="clearfix"> <Col sm={4}> <Nav bsStyle="pills" stacked> <NavItem eventKey="first"> Home<Badge className="pull-right">42</Badge> </NavItem> <NavItem eventKey="second">Profile</NavItem> <NavItem eventKey="third"> Messages <Badge className="pull-right">24</Badge> </NavItem> </Nav> </Col> <Col sm={8}> <Tab.Content animation={false}> <Tab.Pane eventKey="first">Home content</Tab.Pane> <Tab.Pane eventKey="second"> Profile content </Tab.Pane> <Tab.Pane eventKey="third"> Messages content </Tab.Pane> </Tab.Content> </Col> </Row> </Tab.Container>
This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information.
<Jumbotron> <h1>Hello, world!</h1> <p> This is a simple hero unit, a simple jumbotron-style component for calling extra attention to featured content or information. </p> <p> <Button bsStyle="primary">Learn more</Button> </p> </Jumbotron>