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
延伸文章資訊
- 1reactstrap/reactstrap: Simple React Bootstrap 5 components
Simple React Bootstrap 5 components. Contribute to reactstrap/reactstrap development by creating ...
- 2Migrating to v2 - React-Bootstrap
v2.2.1 (Bootstrap 5.1). Github Discord · Getting startedLayoutFormsComponentsUtilitiesMigratingAb...
- 3react-bootstrap - GitHub
- 4Images - React-Bootstrap
Skip to content react-bootstrap. HomeGetting StartedComponents. v2.2.1 (Bootstrap 5.1). Github Di...
- 5Badges - React-Bootstrap
Skip to content react-bootstrap. HomeGetting StartedComponents. v2.2.1 (Bootstrap 5.1). Github Di...