Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control visibility of individual border sides #568

Merged
merged 1 commit into from
Mar 26, 2023
Merged

Conversation

vadimdemedes
Copy link
Owner

This is a continuation of #431, thank you @kosciolek for this contribution!

This PR adds 4 new props to Box: borderTop, borderRight, borderBottom and borderLeft. They are all boolean props and they default to true. They let you control visibility of each border side.

For example, this won't show the left border:

<Box borderStyle="round" borderLeft={false}>
  <Text>Hello world</Text>
</Box>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant