Center

Simple component used to horizontally center its contents.

Usage

<script>
	import { Center } from 'creditdesign-svelte-components';
</script>

<Center
	centerSpace="var(--s-1)"
	centerMeasure="var(--measure)"
	intrinsicallyCenter={false}
	className="test"
>
	<span class="item">Item</span>
</Center>

Props

Property name Default value
boxSpace var(--s-1)
centerMeasure var(--measure)
intrinsicallyCenter false
className ""

Default

Item