Repository navigation
Input: add disabledReason #103
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
base: main
Are you sure you want to change the base?
Changes from all commits
f05108b
1e27c64
afcbf2f
d2bca20
16a4066
beb0e14
268cd05
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| import { Field } from "@infisical/cipher/ui/field"; | ||
| import { Input } from "@infisical/cipher/ui/input"; | ||
|
|
||
| const REASON = "The name is shared across environments. Rename it from the secret's row."; | ||
|
|
||
| export default function Example() { | ||
| return ( | ||
| <div className="grid w-full min-w-0 grid-cols-[repeat(auto-fit,minmax(min(100%,15rem),1fr))] items-start gap-x-6 gap-y-8"> | ||
| <Field label="Editable"> | ||
| <Input mono defaultValue="DATABASE_URL" /> | ||
| </Field> | ||
| <Field label="Read only"> | ||
| <Input mono readOnly defaultValue="DATABASE_URL" /> | ||
| </Field> | ||
| <Field label="Disabled with a reason"> | ||
| <Input mono defaultValue="DATABASE_URL" disabledReason={REASON} /> | ||
| </Field> | ||
| <Field label="Read only with a reason"> | ||
| <Input | ||
| mono | ||
| readOnly | ||
| defaultValue="STRIPE_SECRET_KEY_FOR_THE_PAYMENTS_LEDGER_REPLICA" | ||
| disabledReason={REASON} | ||
| /> | ||
| </Field> | ||
| </div> | ||
| ); | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.