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

feat: updated Text component to latest design specification #70

Merged

Conversation

Samathingamajig
Copy link
Collaborator

I imagine this will change once we get UnoCSS/Tailwind working properly.

It expects colors and such to be passed in by className, so like

<Text className='text-red-500'>something</Text>

It can either be a span or a div element, which is determined by the standard "as" prop. I used a tagged union to be able to get all the properties of the respective element, that way you can use onClick, onMouseLeave, id, title, and more, all without needing to explicitly make that a prop in our code.

src/views/styles/fonts.module.scss Show resolved Hide resolved
@sghsri sghsri merged commit bb727f7 into Longhorn-Developers:main Feb 3, 2024
1 check passed
@Samathingamajig Samathingamajig deleted the sgunter/text-component branch March 14, 2024 07:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants