0

I'm trying to remove the margin horizontal that is applied to the button text but I'm unable to remove it and also when I change the category it is not getting applied, can someone provide me with a an example on how to remove the button text margin (using custom mapping)

Here is the code for the category also

   <Button
      status="primary"
      size="tiny"
      appearance="ghost">
      {(props) => (
        <Text {...props} category="p1">
          Edit
        </Text>
      )}
    </Button>

1 Answer 1

4

Did you mean this?

<Button
  status="primary"
  size="tiny"
  appearance='ghost'
  style={{width: 0}}
>
  {(props) => (
    <Text {...props} category="p1">
      Edit
    </Text>
  )}
</Button>

Snack

Sign up to request clarification or add additional context in comments.

2 Comments

I was having a problem trying to apply a custom font on the button and this helped me. Thank you!
Yes something like this, do you know a way to edit the text via custom mapping for ghost (appearance). Something more specific.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.