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

Allow passing properties to types #478

Open
Hannah-GBS opened this issue Aug 23, 2024 · 2 comments
Open

Allow passing properties to types #478

Hannah-GBS opened this issue Aug 23, 2024 · 2 comments

Comments

@Hannah-GBS
Copy link
Collaborator

ie t.String({someProp: "yes"})

@Brendonovich
Copy link
Owner

Would be helpful to know what properties we need, I think this will just be implemented on a case by case basis

@Hannah-GBS
Copy link
Collaborator Author

For string probably just:
filepicker: boolean
password: boolean (to turn input to a password field)

For both number types:
Min: number
Max: number
Step: number
Suffix: string (ie %, px) - Just visual on input boxes?
Delimiter: string (ie default is comma for 1,000) - Just visual on input boxes?
Delimiter count: (ie default 3 for 1,000,000. 2 for 1,00,00,00. 0 for 1000000) - Just visual on input boxes?

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

No branches or pull requests

2 participants