Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add underline variant for Nav/Tabs (#6623)
* feat: new variant added for tabs * feat: tabs underline example added * fix: updated component name
- Loading branch information
1 parent
3c094ec
commit 600364b
Showing
4 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import Col from 'react-bootstrap/Col'; | ||
import Nav from 'react-bootstrap/Nav'; | ||
import Row from 'react-bootstrap/Row'; | ||
import Tab from 'react-bootstrap/Tab'; | ||
|
||
function UnderlineExample() { | ||
return ( | ||
<Tab.Container id="left-tabs-example" defaultActiveKey="first"> | ||
<Row> | ||
<Col sm={3}> | ||
<Nav variant="underline" className="flex-column"> | ||
<Nav.Item> | ||
<Nav.Link eventKey="first">Tab 1</Nav.Link> | ||
</Nav.Item> | ||
<Nav.Item> | ||
<Nav.Link eventKey="second">Tab 2</Nav.Link> | ||
</Nav.Item> | ||
</Nav> | ||
</Col> | ||
<Col sm={9}> | ||
<Tab.Content> | ||
<Tab.Pane eventKey="first">First tab content</Tab.Pane> | ||
<Tab.Pane eventKey="second">Second tab content</Tab.Pane> | ||
</Tab.Content> | ||
</Col> | ||
</Row> | ||
</Tab.Container> | ||
); | ||
} | ||
|
||
export default UnderlineExample; |