Align Left Button Contents – Mantine UI Button

Align Left the contents in a button like icon, button text in mantine UI. Customizing Mantine button styles

styles={{ inner: { justifyContent: 'flex-start' } }}

 <Button
            key={type}
            leftIcon={<Icon />}
            variant="default"
            styles={{ inner: { justifyContent: 'flex-start' } }}
            onClick={() => handleTypeSelection(type as QuestionType)}
          >
            <Text>{type}</Text>
          </Button>

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *