Skip to content

add inputProps#568

Merged
AnnMarieW merged 5 commits intosnehilvj:masterfrom
AnnMarieW:add-inputprops
Apr 21, 2025
Merged

add inputProps#568
AnnMarieW merged 5 commits intosnehilvj:masterfrom
AnnMarieW:add-inputprops

Conversation

@AnnMarieW
Copy link
Copy Markdown
Collaborator

@AnnMarieW AnnMarieW commented Apr 20, 2025

closes #547

This PR addes inputProps to make it possible to pass any valid attribute to the input element.

For example as requested in issue 547, you can include maxlength like this:

dmc.TextArea(inputProps={"maxLength": 3})

@github-actions
Copy link
Copy Markdown

Test Environment for snehilvj/dash-mantine-components-568
Updated on: 2025-04-20 20:19:08 UTC

@AnnMarieW
Copy link
Copy Markdown
Collaborator Author

AnnMarieW commented Apr 20, 2025

Here is a sample app to try: pycafe

@AnnMarieW AnnMarieW requested a review from alexcjohnson April 21, 2025 16:33
Comment thread src/ts/components/core/input/JsonInput.tsx
Copy link
Copy Markdown
Collaborator

@alexcjohnson alexcjohnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💃

@AnnMarieW AnnMarieW merged commit df7e1c6 into snehilvj:master Apr 21, 2025
1 check 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.

Feature Request - Add maxLength to dmc.TextInput

2 participants