Tables - React-Bootstrap
文章推薦指數: 80 %
Skip to content react-bootstrap. HomeGetting StartedComponents. v2.2.1 (Bootstrap 5.1). Github Discord · Getting startedLayoutFormsComponents.
MenuGettingstartedLayoutFormsComponentsAlertsAccordionBadgeBreadcrumbButtonsButtonGroupCardsCarouselCloseButtonDropdownsFiguresImagesListGroupModalNavsNavbarOffcanvasOverlaysPaginationPlaceholderPopoversProgressSpinnersTableTabsTooltipsToastsUtilitiesMigratingAboutTablesUsethestriped,borderedandhoverpropstocustomisethetable.
#
FirstName
LastName
Username
1
Mark
Otto
@mdo
2
Jacob
Thornton
@fat
3
@twitter
#
FirstName
LastName
Username
1
Mark
Otto
@mdo
2
Jacob
Thornton
@fat
CopySmallTable#Usesize="sm"tomaketablescompactbycuttingcellpaddinginhalf.3
@twitter
#
FirstName
LastName
Username
1
Mark
Otto
@mdo
2
Jacob
Thornton
@fat
3
@twitter
#
FirstName
LastName
Username
1
Mark
Otto
@mdo
2
Jacob
Thornton
@fat
CopyDarkTable#Usevariant="dark"toinvertthecolorsofthetableandgetlighttext
onadarkbackground.3
@twitter
#
FirstName
LastName
Username
1
Mark
Otto
@mdo
2
Jacob
Thornton
@fat
3
@twitter
#
FirstName
LastName
Username
1
Mark
Otto
@mdo
2
Jacob
Thornton
@fat
CopyResponsive#Responsivetablesallowtablestobescrolledhorizontallywithease.AlwaysResponsive#Acrosseverybreakpoint,useresponsiveforhorizontallyscrollingtables.
Responsivetablesarewrappedautomaticallyinadiv.Thefollowingexample
has12columnsthatarescrollablehorizontally.3
@twitter
#
{Array.from({length:12}).map((_,index)=>(
1
{Array.from({length:12}).map((_,index)=>(
2
{Array.from({length:12}).map((_,index)=>(
3
{Array.from({length:12}).map((_,index)=>(
# {Array.from({length:12}).map((_,index)=>(
1 {Array.from({length:12}).map((_,index)=>(
2 {Array.from({length:12}).map((_,index)=>(
CopyBreakpointspecific#Useresponsive="sm",responsive="md",responsive="lg",orresponsive="xl"
asneededtocreateresponsivetablesuptoaparticularbreakpoint.Fromthat
breakpointandup,thetablewillbehavenormallyandnotscrollhorizontally.3 {Array.from({length:12}).map((_,index)=>(
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
#
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
Tableheading
1
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
2
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
3
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
Tablecell
延伸文章資訊
- 1Images - React-Bootstrap
Skip to content react-bootstrap. HomeGetting StartedComponents. v2.2.1 (Bootstrap 5.1). Github Di...
- 2reactstrap/reactstrap: Simple React Bootstrap 5 components
Simple React Bootstrap 5 components. Contribute to reactstrap/reactstrap development by creating ...
- 3react-bootstrap - GitHub
- 4Bootstrap components built with React - GitHub
React-Bootstrap is compatible with various versions of Bootstrap. As such, you need to ensure you...
- 5Introduction - React-Bootstrap
The best way to consume React-Bootstrap is via the npm package which you can install with npm (or...