Skip to content

Commit

Permalink
Adds disabled example
Browse files Browse the repository at this point in the history
  • Loading branch information
cgjohn committed Nov 14, 2024
1 parent 56b5389 commit d383689
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions packages/mobile-app/app/(tabs)/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ export default function UiKit() {
onChange={(value: string) => setInputValue(value)}
label="Enter your name"
/>
<Input
disabled
value={inputValue}
onChange={(value: string) => setInputValue(value)}
label="Enter your name"
/>
</View>
);
}
1 change: 1 addition & 0 deletions packages/tackle-box/lib/components/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const styles = css.create({
inputDisabled: {
backgroundColor: colors.backgroundDisabled,
color: colors.textDisabled,
cursor: "not-allowed",
},
label: {
position: "absolute",
Expand Down
2 changes: 1 addition & 1 deletion packages/tackle-box/tsconfig.app.tsbuildinfo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./lib/index.ts","./lib/components/box/box.tsx","./lib/components/button/button.tsx","./lib/components/input/input.tsx","./lib/vars/colors.stylex.ts","./lib/vars/index.stylex.ts","./lib/vars/sizing.stylex.ts"],"version":"5.6.3"}
{"root":["./src/app.tsx","./src/main.tsx","./src/vite-env.d.ts","./lib/index.ts","./lib/components/box/box.tsx","./lib/components/button/button.tsx","./lib/components/input/input.tsx","./lib/components/textarea/textarea.tsx","./lib/vars/colors.stylex.ts","./lib/vars/index.stylex.ts","./lib/vars/sizing.stylex.ts"],"version":"5.6.3"}

0 comments on commit d383689

Please sign in to comment.