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

Feature: VerticalAlignment #106

Merged
merged 2 commits into from Sep 6, 2022
Merged

Feature: VerticalAlignment #106

merged 2 commits into from Sep 6, 2022

Conversation

maaslalani
Copy link
Member

@maaslalani maaslalani commented Aug 30, 2022

Adds VerticalAlign property to Style to vertically align text in Lip Gloss:

For example, given:

lipgloss.NewStyle().Height(5).VerticalAlign(lipgloss.Center).Render("Foo")

Yields:



Foo


@maaslalani maaslalani merged commit 0ce5550 into master Sep 6, 2022
@maaslalani maaslalani deleted the vertical-alignment branch September 6, 2022 18:11
@maaslalani maaslalani restored the vertical-alignment branch September 6, 2022 18:12
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