Skip to content

Commit

Permalink
Merge pull request #14 from IvanRuskevych/Ruskevych/fix-stories
Browse files Browse the repository at this point in the history
add: examples
  • Loading branch information
IvanRuskevych authored Sep 20, 2024
2 parents 63bccad + d2ca316 commit b5784fd
Showing 1 changed file with 84 additions and 25 deletions.
109 changes: 84 additions & 25 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,97 @@
import { InputGroup } from "./shared/ui";
import { ThemeStyles } from "./shared/styles";
import styled from "styled-components";

function App() {
const isError = true;
const isError = false;
const isInvisibleBorder = false;
const position = "top";
const Container = styled.div`
display: flex;
flex-direction: column;
gap: 5rem;
width: 60%;
margin: 0 auto;
`;

return (
<ThemeStyles theme={"light"}>
<InputGroup
position={position}
inputLabelProps={{
htmlFor: "email",
label: "Email",
required: true,
textTooltip: "This is a tooltip 1",
isInfoIcon: true,
}}
inputTextProps={{
id: "email",
placeholder: "Input...",
isError: isError,
isInvisibleBorder: isInvisibleBorder,
isIconSearch: false,
<Container>
<InputGroup
position={position}
inputLabelProps={{
htmlFor: "email",
label: "Email",
required: true,
textTooltip: "This is an email tooltip",
isInfoIcon: true,
}}
inputTextProps={{
id: "email",
placeholder: "Input...",
isError: isError,
isInvisibleBorder: isInvisibleBorder,
isIconSearch: true,
isIconHelp: true,
isIconShortkey: true,
}}
inputAnnotationProps={{
text: "Example: [email protected]",
textError: "Please enter correct email address. ",
isError: isError,
}}
/>

isIconHelp: true,
isIconShortkey: false,
}}
inputAnnotationProps={{
text: "Example: [email protected]",
textError: "Please enter correct email address. ",
isError: isError,
}}
/>
<InputGroup
position={position}
inputLabelProps={{
htmlFor: "password",
label: "Password",
required: true,
textTooltip: "This is a password tooltip",
isInfoIcon: true,
}}
inputTextProps={{
id: "email",
placeholder: "Input...",
isError: true,
isInvisibleBorder: isInvisibleBorder,
isIconSearch: true,
isIconHelp: true,
isIconShortkey: true,
}}
inputAnnotationProps={{
text: "Example: Password12@!%",
textError: "Please enter correct password. ",
isError: true,
}}
/>

<InputGroup
position={"side"}
inputLabelProps={{
htmlFor: "data",
label: "Data info",
required: true,
textTooltip: "This is a data tooltip",
isInfoIcon: true,
}}
inputTextProps={{
id: "email",
placeholder: "Input...",
isError: false,
isInvisibleBorder: true,
isIconSearch: false,
isIconHelp: false,
isIconShortkey: false,
}}
inputAnnotationProps={{
text: "Example: 12345",
textError: "Please enter data. ",
isError: false,
}}
/>
</Container>
</ThemeStyles>
);
}
Expand Down

0 comments on commit b5784fd

Please sign in to comment.