Logo Logo Logo Logo
دکمه پیش‌فرض

با اضافه کردن موارد زیر، دکمه‌ها را در بوت‌استرپ ایجاد کنید.btnکلاس به همراه کلاس‌های زمینه‌ای مانند.btn-اولیه، .btn-ثانویه، یا.btn-موفقیتبرای استایل دادن به دکمه.


استفاده از.btnکلاسی برای ایجاد دکمه‌ها در بوت‌استرپ. اضافه کنیدقرص گردکلاسی برای گرد کردن لبه‌های دکمه و ایجاد یک دکمه قرصی شکل.

<button type="button" class="btn btn-primary">Primary</button>
<button type="button" class="btn btn-secondary">Secondary</button>
<button type="button" class="btn btn-success">Success</button>
<button type="button" class="btn btn-info">Info</button>
<button type="button" class="btn btn-warning">Warning</button>
<button type="button" class="btn btn-danger">Danger</button>
<button type="button" class="btn btn-dark">Dark</button>
<button type="button" class="btn btn-link">Link</button>
<button type="button" class="btn btn-light">Light</button>
<button type="button" class="btn rounded-pill btn-primary">Primary</button>
<button type="button" class="btn rounded-pill btn-secondary">Secondary</button>
<button type="button" class="btn rounded-pill btn-success">Success</button>
<button type="button" class="btn rounded-pill btn-info">Info</button>
<button type="button" class="btn rounded-pill btn-warning">Warning</button>
<button type="button" class="btn rounded-pill btn-danger">Danger</button>
<button type="button" class="btn rounded-pill btn-dark">Dark</button>
<button type="button" class="btn rounded-pill btn-link">Link</button>
<button type="button" class="btn rounded-pill btn-light">Light</button>
دکمه روشن

با استفاده از دستور زیر، دکمه‌هایی با تم روشن در بوت‌استرپ ایجاد کنید. .btn-نورکلاس. شما همچنین می‌توانید تغییراتی مانند موارد زیر اضافه کنید .btn-light-primaryیا .btn-light-secondaryبرای لهجه های رنگی مختلف.


با ترکیب موارد زیر، دکمه‌های قرصی شکل با تم روشن در بوت‌استرپ ایجاد کنید.btn-light-*کلاس باقرص گرداین به دکمه رنگی روشن و لبه‌های گرد برای ظاهری شیک می‌دهد.

<button type="button" class="btn btn-light-primary">Primary</button>
<button type="button" class="btn btn-light-secondary">Secondary</button>
<button type="button" class="btn btn-light-success">Success</button>
<button type="button" class="btn btn-light-info">Info</button>
<button type="button" class="btn btn-light-warning">Warning</button>
<button type="button" class="btn btn-light-danger">Danger</button>
<button type="button" class="btn btn-light-dark">Dark</button>
<button type="button" class="btn rounded-pill btn-light-primary">Primary</button>
<button type="button" class="btn rounded-pill btn-light-secondary">Secondary</button>
<button type="button" class="btn rounded-pill btn-light-success">Success</button>
<button type="button" class="btn rounded-pill btn-light-info">Info</button>
<button type="button" class="btn rounded-pill btn-light-warning">Warning</button>
<button type="button" class="btn rounded-pill btn-light-danger">Danger</button>
<button type="button" class="btn rounded-pill btn-light-dark">Dark</button>
دکمه طرح کلی

ایجاد دکمه‌های outline در بوت‌استرپ با استفاده از .btn-outline-*کلاس. این به دکمه یک حاشیه و پس‌زمینه شفاف می‌دهد، با تنوع رنگی مانند.btn-outline-primaryیا .btn-outline-secondary.


با استفاده از دستور زیر، دکمه‌های outline با لبه‌های گرد در بوت‌استرپ ایجاد کنید. .btn-outline-*کلاس به همراهقرص گرداین طرح ترکیبی از یک دکمه شفاف با طراحی قرصی شکل و براق است.

<button type="button" class="btn btn-outline-primary">Primary</button>
<button type="button" class="btn btn-outline-secondary">Secondary</button>
<button type="button" class="btn btn-outline-success">Success</button>
<button type="button" class="btn btn-outline-info">Info</button>
<button type="button" class="btn btn-outline-warning">Warning</button>
<button type="button" class="btn btn-outline-danger">Danger</button>
<button type="button" class="btn btn-outline-dark">Dark</button>
<button type="button" class="btn rounded-pill btn-outline-primary">Primary</button>
<button type="button" class="btn rounded-pill btn-outline-secondary">Secondary</button>
<button type="button" class="btn rounded-pill btn-outline-success">Success</button>
<button type="button" class="btn rounded-pill btn-outline-info">Info</button>
<button type="button" class="btn rounded-pill btn-outline-warning">Warning</button>
<button type="button" class="btn rounded-pill btn-outline-danger">Danger</button>
<button type="button" class="btn rounded-pill btn-outline-dark">Dark</button>
دکمه متن

ایجاد دکمه‌های فقط متنی در بوت‌استرپ با استفاده از.btn-text-* کلاس. این کد پس‌زمینه و حاشیه را حذف می‌کند و فقط متن استایل‌دهی شده به عنوان دکمه را باقی می‌گذارد.

<button type="button" class="btn btn-text-primary">Primary</button>
<button type="button" class="btn btn-text-secondary">Secondary</button>
<button type="button" class="btn btn-text-success">Success</button>
<button type="button" class="btn btn-text-info">Info</button>
<button type="button" class="btn btn-text-warning">Warning</button>
<button type="button" class="btn btn-text-danger">Danger</button>
<button type="button" class="btn btn-text-dark">Dark</button>
اندازه دکمه‌ها

تنظیم اندازه دکمه‌ها در بوت‌استرپ با استفاده از کلاس‌های اندازه .btn-smبرای دکمه‌های کوچک‌تر و.btn-lgبرای دکمه‌های بزرگتر. اندازه پیش‌فرض زمانی اعمال می‌شود که هیچ کلاس اندازه‌ای استفاده نشود.

<!-- Small Button -->
<button type="button" class="btn btn-primary btn-sm">Small button</button>

<!-- Normal Button -->
<button type="button" class="btn btn-primary">Large button</button>

<!-- Large Button -->
<button type="button" class="btn btn-primary btn-lg">Large button</button>
دکمه‌های شبکه‌های اجتماعی

با استفاده از دستور زیر دکمه‌های شبکه‌های اجتماعی را در بوت‌استرپ ایجاد کنید. .btnکلاس به همراه کلاس‌های رنگی سفارشی برای هر پلتفرم، مانند .btn-facebook، .btn-light-facebook، .btn-توییتریا .btn-light-twitter، برای مطابقت با سبک‌های برند مربوطه.


دکمه‌های طرح کلی رسانه‌های اجتماعی را در بوت‌استرپ با استفاده از ... ایجاد کنید..btn btn-outline-youtubeکلاس. این به دکمه یک پس‌زمینه شفاف با حاشیه رنگی می‌دهد که برای برند یوتیوب استایل‌بندی شده است.

<button type="button" class="btn btn-facebook icon-btn">
  <i class="ri-facebook-fill"></i>
</button>
<button type="button" class="btn btn-google icon-btn">
  <i class="ri-google-fill"></i>
</button>
<button type="button" class="btn btn-twitter icon-btn">
  <i class="ri-twitter-fill"></i>
</button>
<button type="button" class="btn btn-instagram icon-btn">
  <i class="ri-instagram-fill"></i>
</button>
<button type="button" class="btn btn-youtube icon-btn">
  <i class="ri-youtube-fill"></i>
</button>
<button type="button" class="btn btn-linkedin icon-btn">
  <i class="ri-linkedin-box-fill"></i>
</button>

<button type="button" class="btn btn-light-facebook icon-btn">
  <i class="ri-facebook-fill"></i>
</button>
<button type="button" class="btn btn-light-google icon-btn">
  <i class="ri-google-fill"></i>
</button>
<button type="button" class="btn btn-light-twitter icon-btn">
  <i class="ri-twitter-fill"></i>
</button>
<button type="button" class="btn btn-light-instagram icon-btn">
  <i class="ri-instagram-fill"></i>
</button>
<button type="button" class="btn btn-light-youtube icon-btn">
  <i class="ri-youtube-fill"></i>
</button>
<button type="button" class="btn btn-light-linkedin icon-btn">
  <i class="ri-linkedin-box-fill"></i>
</button>
<button type="button" class="btn btn-outline-facebook icon-btn">
    <i class="ri-facebook-fill"></i>
</button>
<button type="button" class="btn btn-outline-google icon-btn">
    <i class="ri-google-fill"></i>
</button>
<button type="button" class="btn btn-outline-twitter icon-btn">
    <i class="ri-twitter-fill"></i>
</button>
<button type="button" class="btn btn-outline-instagram icon-btn">
    <i class="ri-instagram-fill"></i>
</button>
<button type="button" class="btn btn-outline-youtube icon-btn">
    <i class="ri-youtube-fill"></i>
</button>
<button type="button" class="btn btn-outline-linkedin icon-btn">
    <i class="ri-linkedin-box-fill"></i>
</button>
دکمه‌های آیکون

با ترکیب موارد زیر، دکمه‌های آیکون را در بوت‌استرپ ایجاد کنید.btn کلاسی با یک آیکون، مانند استفاده از یک آیکون از کتابخانه‌ای مانند Remix Icon. این به شما امکان می‌دهد عناصر بصری را در کنار متن دکمه اضافه کنید.


با استفاده از دستور زیر، دکمه‌های آیکونی را در بوت‌استرپ ایجاد کنید..icon-btn کلاس به همراه یک آیکون از یک کتابخانه آیکون. این کلاس دکمه را طوری استایل‌بندی می‌کند که یک آیکون را در خود جای دهد و آن را از نظر بصری جذاب و کاربردی کند.

<button type="button" class="btn btn-primary">
  <i class="ri-star-line me-2"></i>
  Primary
</button>
<button type="button" class="btn rounded-pill btn-primary">
  <i class="ri-star-line me-2"></i>
  Primary
</button>
<button type="button" class="btn btn-secondary">
  <i class="ri-notification-4-line me-2"></i>
  Secondary
</button>
<button type="button" class="btn rounded-pill btn-secondary">
  <i class="ri-notification-4-line me-2"></i>
  Secondary
</button>
<button type="button" class="btn btn-light-primary">
  <i class="ri-star-line me-2"></i>
  Primary
</button>
<button type="button" class="btn rounded-pill btn-light-primary">
  <i class="ri-star-line me-2"></i>
  Primary
</button>
<button type="button" class="btn btn-light-secondary">
  <i class="ri-notification-4-line me-2"></i>
  Secondary
</button>
<button type="button" class="btn rounded-pill btn-light-secondary">
  <i class="ri-notification-4-line me-2"></i>
  Secondary
</button>
<button type="button" class="btn btn-outline-primary">
  <i class="ri-star-line me-2"></i>
  Primary
</button>
<button type="button" class="btn rounded-pill btn-outline-primary">
  <i class="ri-star-line me-2"></i>
  Primary
</button>
<button type="button" class="btn btn-outline-secondary">
  <i class="ri-notification-4-line me-2"></i>
  Secondary
</button>
<button type="button" class="btn rounded-pill btn-outline-secondary">
  <i class="ri-notification-4-line me-2"></i>
  Secondary
</button>
<button type="button" class="btn btn-primary icon-btn">
  <i class="ri-star-line"></i>
</button>
<button type="button" class="btn btn-secondary icon-btn">
  <i class="ri-notification-4-line"></i>
</button>
<button type="button" class="btn btn-primary rounded-pill icon-btn">
  <i class="ri-star-line"></i>
</button>
<button type="button" class="btn btn-secondary rounded-pill icon-btn">
  <i class="ri-notification-4-line"></i>
</button>

<button type="button" class="btn btn-light-primary icon-btn">
  <i class="ri-star-line"></i>
</button>
<button type="button" class="btn btn-light-secondary icon-btn">
  <i class="ri-notification-4-line"></i>
</button>
<button type="button" class="btn btn-light-primary rounded-pill icon-btn">
  <i class="ri-star-line"></i>
</button>
<button type="button" class="btn btn-light-secondary rounded-pill icon-btn">
  <i class="ri-notification-4-line"></i>
</button>

<button type="button" class="btn btn-outline-primary icon-btn">
  <i class="ri-star-line"></i>
</button>
<button type="button" class="btn btn-outline-secondary icon-btn">
  <i class="ri-notification-4-line"></i>
</button>
<button type="button" class="btn btn-outline-primary rounded-pill icon-btn">
  <i class="ri-star-line"></i>
</button>
<button type="button" class="btn btn-outline-secondary rounded-pill icon-btn">
  <i class="ri-notification-4-line"></i>
</button>
اندازه دکمه آیکون

ایجاد دکمه‌های آیکون در بوت‌استرپ با استفاده از.icon-btnکلاس. اندازه را با.icon-btn-smبرای دکمه‌های کوچک‌تر، که امکان طراحی جمع‌وجور را در عین گنجاندن آیکون‌ها فراهم می‌کند.

<button type="button" class="btn btn-primary icon-btn-sm">
  <i class="ri-home-2-line"></i>
</button>
<button type="button" class="btn btn-primary icon-btn">
  <i class="ri-home-2-line"></i>
</button>
<button type="button" class="btn btn-primary icon-btn-lg">
  <i class="ri-home-2-line"></i>
</button>
دکمه‌های تغییر وضعیت سفارشی

ایجاد دکمه‌های تغییر وضعیت سفارشی در بوت‌استرپ با استفاده از.btn-loader کلاس برای نمایش وضعیت بارگذاری. به طور پیش‌فرض، از.برچسب-شاخصبرای متن دکمه، که به.شاخص-پیشرفتپس از کلیک کردن برای نشان دادن فرآیند بارگیری.

<button type="button" class="btn btn-primary btn-loader">
  <span class="indicator-label">
    Submit
  </span>
  <span class="indicator-progress flex gap-2 align-items-center">
    <span>Loading...</span>
    <i class="ri-loader-2-fill"></i>
  </span>
</button>
<button type="button" class="btn btn-danger btn-loader">
  <span class="indicator-label">
    Submit
  </span>
  <span class="indicator-progress flex gap-2 align-items-center">
    <span>Please Wait...</span>
    <i class="ri-loader-2-fill"></i>
  </span>
</button>
<button type="button" class="btn btn-primary custom-toggle" data-bs-toggle="button">
  <span class="icon-on">
    <i class="ri-add-line align-bottom me-1"></i> Unfollow
  </span>
  <span class="icon-off">
    <i class="ri-user-unfollow-line align-bottom me-1"></i> Follow
  </span>
</button>
<button type="button" class="btn btn-primary custom-toggle" data-bs-toggle="button">
  <span class="icon-on">
    Inactive
  </span>
  <span class="icon-off">
    Active
  </span>
</button>
<button type="button" class="btn btn-dark icon-btn custom-toggle" data-bs-toggle="button">
  <span class="icon-on">
    <i class="ri-bookmark-line"></i>
  </span>
  <span class="icon-off">
    <i class="ri-bookmark-fill"></i>
  </span>
</button>
<button type="button" class="btn btn-success icon-btn custom-toggle" data-bs-toggle="button">
  <span class="icon-on">
    <i class="ri-heart-line"></i>
  </span>
  <span class="icon-off">
    <i class="ri-heart-fill"></i>
  </span>
</button>
بارگذاری انیمیشن‌ها

اضافه کردن انیمیشن‌های بارگذاری در بوت‌استرپ با استفاده از.btn-loaderکلاس. گنجاندن.spinner-رشدیا .spinner-حاشیهکلاس‌هایی برای نمایش انواع مختلف اسپینرها، که بازخورد بصری را در طول فرآیندهای بارگیری ارائه می‌دهند.

<button type="button" class="btn btn-primary btn-loader">
  <span class="d-flex gap-2 align-items-center">
    <span class="flex-grow-1">
      Loading...
    </span>
    <span class="flex-shrink-0">
      <i class="ri-loader-2-fill"></i>
      <span class="visually-hidden">Loading...</span>
    </span>
  </span>
</button>
<button type="button" class="btn btn-secondary btn-loader">
  <span class="d-flex gap-2 align-items-center">
    <span class="flex-grow-1">
      Please Wait...
    </span>
    <span class="flex-shrink-0">
      <i class="ri-refresh-line"></i>
      <span class="visually-hidden">Please Wait...</span>
    </span>
  </span>
</button>
<button type="button" class="btn btn-primary">
  <span class="d-flex align-items-center">
    <span class="spinner-border spinner-border-sm me-2 flex-shrink-0" role="status">
      <span class="visually-hidden">Loading...</span>
    </span>
    <span class="flex-grow-1 ms-2">
      Loading...
    </span>
  </span>
</button>
<button type="button" class="btn btn-secondary">
  <span class="d-flex align-items-center">
    <span class="flex-grow-1 me-2">
      Wait...
    </span>
    <span class="spinner-border spinner-border-sm me-2 flex-shrink-0" role="status">
      <span class="visually-hidden">Wait...</span>
    </span>
  </span>
</button>
<button type="button" class="btn btn-success icon-btn">
  <span class="spinner-grow spinner-grow-sm flex-shrink-0" role="status">
    <span class="visually-hidden">Wait...</span>
  </span>
</button>
<button type="button" class="btn btn-success icon-btn">
  <span class="spinner-border spinner-border-sm flex-shrink-0" role="status">
    <span class="visually-hidden">Wait...</span>
  </span>
</button>
دکمه تمام عرض

با استفاده از دستور زیر، یک دکمه تمام عرض در بوت‌استرپ ایجاد کنید..w-100 کلاس به همراه.btnکلاس. این باعث می‌شود دکمه کشیده شود تا محفظه خود را پر کند و مطمئن شود که کل عرض موجود را اشغال می‌کند.

<button class="btn btn-primary w-100" type="button">Button</button>
<button class="btn btn-secondary w-100" type="button">Button</button>

<button class="btn btn-light-primary w-100" type="button">Button</button>
<button class="btn btn-light-secondary w-100" type="button">Button</button>

<button class="btn btn-outline-primary w-100" type="button">Button</button>
<button class="btn btn-outline-secondary w-100" type="button">Button</button>
سفارشی‌سازی قالب

it's time to style according to your choice ..!

طرح بندی

طرح‌بندی خود را انتخاب کنید

عمودی
افقی
نیمه جعبه
عرض محتوا:
پیش‌فرض
جعبه
جهت چیدمان:
راست‌چین
چپ
حالت چیدمان:
نور
تیره
سیستم
اندازه نوار کناری:
پیش‌فرض
آیکون
رنگ نوار کناری:
نور
تیره