mirror of
https://github.com/tabler/tabler.git
synced 2026-08-05 01:44:41 +04:00
48 lines
1.8 KiB
Plaintext
48 lines
1.8 KiB
Plaintext
---
|
||
title: Payments
|
||
summary: The Tabler payments plug-in will let you use a set of payment provider icons to facilitate the payment process and make it more user-friendly.
|
||
plugin: payments
|
||
description: User-friendly payment provider icons.
|
||
layout: '@shared/layouts/DocsMdxLayout.astro'
|
||
---
|
||
|
||
import Example from '@components/Example.astro'
|
||
import Payments from '@components/Payments.astro'
|
||
import CdnImportPlugin from '@components/CdnImportPlugin.astro'
|
||
|
||
## Installation
|
||
|
||
This part of Tabler is distributed as a plugin. To enable it you should include `tabler-payments.css` or `tabler-payments.min.css` file in your page.
|
||
|
||
You can also include the plugin via CDN:
|
||
|
||
<CdnImportPlugin plugins={['payments']} />
|
||
|
||
## Payment
|
||
|
||
To create a payment provider icon, add the `payment` class to a component and specify the payment provider with the `payment-provider-*` class. The full list of payment providers can be found at the end of this page.
|
||
|
||
<Example>
|
||
<span class="payment payment-provider-shopify"></span>
|
||
<span class="payment payment-provider-visa"></span>
|
||
<span class="payment payment-provider-paypal"></span>
|
||
</Example>
|
||
|
||
## Payment sizes
|
||
|
||
Using Bootstrap’s typical naming structure, you can create a standard payment, or scale it up or down to different sizes based on what’s needed.
|
||
|
||
<Example>
|
||
<span class="payment payment-xl payment-provider-shopify"></span>
|
||
<span class="payment payment-lg payment-provider-visa"></span>
|
||
<span class="payment payment-md payment-provider-paypal"></span>
|
||
<span class="payment payment-sm payment-provider-amazon"></span>
|
||
<span class="payment payment-xs payment-provider-blik"></span>
|
||
</Example>
|
||
|
||
## List of available payment providers
|
||
|
||
Select an icon from the list of payment providers. Each icon comes in two color variants - light and dark, so you can choose the one that goes well with your design.
|
||
|
||
<Payments />
|