Skip to content

Implement properties for Note component #615

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

Merged
merged 2 commits into from
Apr 17, 2025

Conversation

romainpi
Copy link
Contributor

The Note component was fully static.

I've added title?, description? and icon? properties.

I've NOT added a definition for Props to src/types.d.ts as is usually the case with the components in src/components/widgets/: I found two components that didn't: src/components/widgets/HeroText.astro and src/components/widgets/Stats.astro; with this PR the Note component will be in the same state as those component.

In any case this PR successfully allows the use of attributes for the Note component.

@romainpi
Copy link
Contributor Author

#544 Also contains code that turns Note into a component with properties.

@prototypa prototypa merged commit 20841e2 into onwidget:main Apr 17, 2025
3 of 4 checks passed
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.

2 participants