Skip to content

Commit

Permalink
add more props to input
Browse files Browse the repository at this point in the history
  • Loading branch information
dancingfrog committed Aug 9, 2024
1 parent c730138 commit d07422c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion inst/dist/@cori-risi/components/basic.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,13 @@ export declare function Button(props: {
*/
export declare function Input(props: {
children?: ReactElement<any, any> | ReactElement<any, any>[];
id?: string;
name?: string;
type: string;
checked?: boolean;
min?: number;
max?: number;
value?: number;
value?: number | string;
onChange?: ChangeEventHandler<HTMLInputElement> | undefined;
}): React.JSX.Element;
/**
Expand Down
2 changes: 1 addition & 1 deletion inst/dist/@cori-risi/components/basic.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inst/dist/@cori-risi/components/basic.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion lib/@cori-risi/components/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ export function Button(props: { children?: ReactElement<any, any> | ReactElement
*/
export function Input(props: {
children?: ReactElement<any, any> | ReactElement<any, any>[],
id?: string;
name?: string;
type: string,
checked?: boolean,
min?: number,
max?: number,
value?: number,
value?: number | string,
onChange?: ChangeEventHandler<HTMLInputElement> | undefined
}) {
return <input {...props} />
Expand Down

0 comments on commit d07422c

Please sign in to comment.