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: input field #24

Merged
merged 1 commit into from
Nov 19, 2024
Merged

feat: input field #24

merged 1 commit into from
Nov 19, 2024

Conversation

jrasm91
Copy link
Contributor

@jrasm91 jrasm91 commented Nov 19, 2024

Add Field to be used with Input.

Examples:

<Field label="Label">
  <Input placeholder="label" />
</Field>

<Field label="Disabled" disabled>
  <Input placeholder="label" />
</Field>

<Field label="Instance URL">
  <Input placeholder="label" value="https://immich.app" />
</Field>

<Field label="Read-only" readOnly>
  <Input placeholder="label" value="https://immich.app" />
</Field>

<Field label="Helper text">
  <Input placeholder="label" />
  <HelperText>Note: this is helper text</HelperText>
</Field>

<Field label="Invalid" invalid>
  <Input placeholder="label" />
  <HelperText color="danger">Must be valid</HelperText>
</Field>

Copy link
Member

@danieldietzler danieldietzler left a comment

Choose a reason for hiding this comment

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

🎉

@jrasm91 jrasm91 merged commit 5ec9485 into main Nov 19, 2024
2 checks passed
@jrasm91 jrasm91 deleted the feat/input-field branch November 19, 2024 21:44
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