Spacing
Set container spacing with rapid
How to apply spacing
You can apply padding in the x axis (horizontal), y axis (vertical) or you can individually apply padding to the left, right, top or bottom with the following symbol pattern p[x/y/l/r/t/b]-[range]. To apply margin you just need to replace the p with m. Here is the following symbol pattern for margin m[x/y/l/r/t/b]-[range]
Spacing example
RapidContainer(
styles: "px-4 my-4",
child: MyWidget()
);
Padding
Padding X
To apply padding in the horizontal axis you can use the following pattern px-[range]. Here are all the accepted symbols
px-0px-1px-2px-3px-4px-5px-6px-7px-8px-9px-10px-11px-12px-14px-16px-20px-24px-28px-32px-36px-40px-44px-48px-52px-56px-60px-64px-72px-80px-96
Padding Y
To apply padding in the vertical axis you can use the following pattern py-[range]. Here are all the accepted symbols
py-0py-1py-2py-3py-4py-5py-6py-7py-8py-9py-10py-11py-12py-14py-16py-20py-24py-28py-32py-36py-40py-44py-48py-52py-56py-60py-64py-72py-80py-96
Padding Left
To apply padding on the left you can use the following pattern pl-[range]. Here are all the accepted symbols
pl-0pl-1pl-2pl-3pl-4pl-5pl-6pl-7pl-8pl-9pl-10pl-11pl-12pl-14pl-16pl-20pl-24pl-28pl-32pl-36pl-40pl-44pl-48pl-52pl-56pl-60pl-64pl-72pl-80pl-96
Padding Right
To apply padding on the right you can use the following pattern pr-[range]. Here are all the accepted symbols
pr-0pr-1pr-2pr-3pr-4pr-5pr-6pr-7pr-8pr-9pr-10pr-11pr-12pr-14pr-16pr-20pr-24pr-28pr-32pr-36pr-40pr-44pr-48pr-52pr-56pr-60pr-64pr-72pr-80pr-96
Padding Top
To apply padding on the top you can use the following pattern pt-[range]. Here are all the accepted symbols
pt-0pt-1pt-2pt-3pt-4pt-5pt-6pt-7pt-8pt-9pt-10pt-11pt-12pt-14pt-16pt-20pt-24pt-28pt-32pt-36pt-40pt-44pt-48pt-52pt-56pt-60pt-64pt-72pt-80pt-96
Padding Bottom
To apply padding on the bottom you can use the following pattern pb-[range]. Here are all the accepted symbols
pb-0pb-1pb-2pb-3pb-4pb-5pb-6pb-7pb-8pb-9pb-10pb-11pb-12pb-14pb-16pb-20pb-24pb-28pb-32pb-36pb-40pb-44pb-48pb-52pb-56pb-60pb-64pb-72pb-80pb-96
Margin
Margin X
To apply margin in the horizontal axis you can use the following pattern mx-[range]. Here are all the accepted symbols
mx-0mx-1mx-2mx-3mx-4mx-5mx-6mx-7mx-8mx-9mx-10mx-11mx-12mx-14mx-16mx-20mx-24mx-28mx-32mx-36mx-40mx-44mx-48mx-52mx-56mx-60mx-64mx-72mx-80mx-96
Margin Y
To apply margin in the vertical axis you can use the following pattern my-[range]. Here are all the accepted symbols
my-0my-1my-2my-3my-4my-5my-6my-7my-8my-9my-10my-11my-12my-14my-16my-20my-24my-28my-32my-36my-40my-44my-48my-52my-56my-60my-64my-72my-80my-96
Margin Left
To apply margin on the left you can use the following pattern ml-[range]. Here are all the accepted symbols
ml-0ml-1ml-2ml-3ml-4ml-5ml-6ml-7ml-8ml-9ml-10ml-11ml-12ml-14ml-16ml-20ml-24ml-28ml-32ml-36ml-40ml-44ml-48ml-52ml-56ml-60ml-64ml-72ml-80ml-96
Margin Right
To apply margin on the right you can use the following pattern mr-[range]. Here are all the accepted symbols
mr-0mr-1mr-2mr-3mr-4mr-5mr-6mr-7mr-8mr-9mr-10mr-11mr-12mr-14mr-16mr-20mr-24mr-28mr-32mr-36mr-40mr-44mr-48mr-52mr-56mr-60mr-64mr-72mr-80mr-96
Margin Top
To apply margin on the top you can use the following pattern mt-[range]. Here are all the accepted symbols
mt-0mt-1mt-2mt-3mt-4mt-5mt-6mt-7mt-8mt-9mt-10mt-11mt-12mt-14mt-16mt-20mt-24mt-28mt-32mt-36mt-40mt-44mt-48mt-52mt-56mt-60mt-64mt-72mt-80mt-96
Margin Bottom
To apply margin on the bottom you can use the following pattern mb-[range]. Here are all the accepted symbols
mb-0mb-1mb-2mb-3mb-4mb-5mb-6mb-7mb-8mb-9mb-10mb-11mb-12mb-14mb-16mb-20mb-24mb-28mb-32mb-36mb-40mb-44mb-48mb-52mb-56mb-60mb-64mb-72mb-80mb-96
Range to PX
[symbol]-0 = 0px[symbol]-1 = 4px[symbol]-2 = 8px[symbol]-3 = 12px[symbol]-4 = 16px[symbol]-5 = 20px[symbol]-6 = 24px[symbol]-7 = 28px[symbol]-8 = 32px[symbol]-9 = 36px[symbol]-10 = 40px[symbol]-11 = 44px[symbol]-12 = 48px[symbol]-14 = 56px[symbol]-16 = 65px[symbol]-20 = 80px[symbol]-24 = 96px[symbol]-28 = 112px[symbol]-32 = 128px[symbol]-36 = 144px[symbol]-40 = 160px[symbol]-44 = 176px[symbol]-48 = 192px[symbol]-52 = 208px[symbol]-56 = 224px[symbol]-60 = 240px[symbol]-64 = 256px[symbol]-72 = 288px[symbol]-80 = 320px[symbol]-96 = 384px