@extends('layouts.master') @section('title') @lang('translation.offcanvas') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Components @endslot @slot('title') Offcanvas @endslot @endcomponent
Use the offcanvas
class to set a default offcanvas.
We talked about a project on linkedin.
TodayAdding a new event with attachments
added a new member to velzon dashboard
19 NovThese customers can rest assured their order has been placed.
16 NovThey all have something to say beyond the words on the page. They can come across as casual or neutral, exotic or graphic.
22 Oct2 days left notification to submit the monthly sales report. Reports Builder
15 OctUser Erica245 submitted a ticket.
26 Aug
<!-- Base Examples -->
<div class="hstack flex-wrap gap-2">
<a class="btn btn-light" data-bs-toggle="offcanvas" href="#offcanvasExample" role="button" aria-controls="offcanvasExample">
Link with href
</a>
<button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasExample" aria-controls="offcanvasExample">
Button with data-bs-target
</button>
</div>
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasExample" aria-labelledby="offcanvasExampleLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasExampleLabel">Offcanvas</h5>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
...
</div>
</div>
Use offcanvas-top
, offcanvas-end
, offcanvas-bottom
, or offcanvas-start
to offcanvas class to set different Offcanvas Placement.
We talked about a project on linkedin.
TodayAdding a new event with attachments
added a new member to velzon dashboard
19 NovThese customers can rest assured their order has been placed.
16 NovThey all have something to say beyond the words on the page. They can come across as casual or neutral, exotic or graphic.
22 Oct2 days left notification to submit the monthly sales report. Reports Builder
15 OctUser Erica245 submitted a ticket.
26 AugWe talked about a project on linkedin.
TodayAdding a new event with attachments
added a new member to velzon dashboard
19 NovThese customers can rest assured their order has been placed.
16 NovThey all have something to say beyond the words on the page. They can come across as casual or neutral, exotic or graphic.
22 Oct2 days left notification to submit the monthly sales report. Reports Builder
15 OctUser Erica245 submitted a ticket.
26 Aug<!-- Placement Offcanvas --> <div class="d-flex flex-wrap gap-2"> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasTop" aria-controls="offcanvasTop">Toggle Top offcanvas</button> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight">Toggle Right offcanvas</button> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasBottom" aria-controls="offcanvasBottom">Toggle Bottom offcanvas</button> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasLeft" aria-controls="offcanvasLeft">Toggle Left offcanvas</button> </div>
<!-- top offcanvas --> <div class="offcanvas offcanvas-top" tabindex="-1" id="offcanvasTop" aria-labelledby="offcanvasTopLabel"> <div class="offcanvas-header"> <h5 id="offcanvasTopLabel">Offcanvas Top</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </d0iv>
<!-- right offcanvas --> <div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel"> <div class="offcanvas-header"> <h5 id="offcanvasRightLabel">Offcanvas Right</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </div>
<!-- bottom offcanvas --> <div class="offcanvas offcanvas-bottom" tabindex="-1" id="offcanvasBottom" aria-labelledby="offcanvasBottomLabel"> <div class="offcanvas-header"> <h5 id="offcanvasBottomLabel">Offcanvas Bottom</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </div>
<!-- left offcanvas --> <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasLeft" aria-labelledby="offcanvasLeftLabel"> <div class="offcanvas-header"> <h5 id="offcanvasLeftLabel">Offcanvas Left</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </div>
Here are the example of offcanvas with scrolling active and backdrop visible.
We talked about a project on linkedin.
TodayAdding a new event with attachments
added a new member to velzon dashboard
19 NovThese customers can rest assured their order has been placed.
16 NovThey all have something to say beyond the words on the page. They can come across as casual or neutral, exotic or graphic.
22 Oct2 days left notification to submit the monthly sales report. Reports Builder
15 OctUser Erica245 submitted a ticket.
26 AugWe talked about a project on linkedin.
TodayAdding a new event with attachments
added a new member to velzon dashboard
19 NovThese customers can rest assured their order has been placed.
16 NovThey all have something to say beyond the words on the page. They can come across as casual or neutral, exotic or graphic.
22 Oct2 days left notification to submit the monthly sales report. Reports Builder
15 OctUser Erica245 submitted a ticket.
26 AugWe talked about a project on linkedin.
TodayAdding a new event with attachments
added a new member to velzon dashboard
19 NovThese customers can rest assured their order has been placed.
16 NovThey all have something to say beyond the words on the page. They can come across as casual or neutral, exotic or graphic.
22 Oct2 days left notification to submit the monthly sales report. Reports Builder
15 OctUser Erica245 submitted a ticket.
26 Aug<!-- Backdrop Offcanvas --> <div class="d-flex flex-wrap gap-2"> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasScrolling" aria-controls="offcanvasScrolling">Enable body scrolling</button> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBackdrop" aria-controls="offcanvasWithBackdrop">Enable backdrop (default)</button> <button class="btn btn-light" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasWithBothOptions" aria-controls="offcanvasWithBothOptions">Enable both scrolling & backdrop</button> </div>
<div class="offcanvas offcanvas-start" data-bs-scroll="true" data-bs-backdrop="false" tabindex="-1" id="offcanvasScrolling" aria-labelledby="offcanvasScrollingLabel"> <div class="offcanvas-header"> <h5 class="offcanvas-title" id="offcanvasScrollingLabel">Colored with scrolling</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </div>
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasWithBackdrop" aria-labelledby="offcanvasWithBackdropLabel"> <div class="offcanvas-header"> <h5 class="offcanvas-title" id="offcanvasWithBackdropLabel">Offcanvas with backdrop</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </div>
<div class="offcanvas offcanvas-start" data-bs-scroll="true" tabindex="-1" id="offcanvasWithBothOptions" aria-labelledby="offcanvasWithBothOptionsLabel"> <div class="offcanvas-header"> <h5 class="offcanvas-title" id="offcanvasWithBothOptionsLabel">Backdroped with scrolling</h5> <button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> ... </div> </div>