Skip to content

Commit

Permalink
add customizable month sample
Browse files Browse the repository at this point in the history
  • Loading branch information
javadbat committed Feb 20, 2024
1 parent 09a17fe commit bdc2c8c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
26 changes: 13 additions & 13 deletions docs/package-lock.json

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

4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"eslint": "8.35.0",
"eslint-config-next": "13.2.3",
"jb-calendar": "^4.0.3",
"jb-date-input": "^3.7.12",
"jb-date-input-react": "^2.0.20",
"jb-date-input": "^3.13.0",
"jb-date-input-react": "^2.6.0",
"next": "13.2.3",
"react": "18.2.0",
"react-dom": "18.2.0",
Expand Down
1 change: 1 addition & 0 deletions docs/src/components/samples/Samples.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ function Samples() {
<div>b</div>
</jb-date-input-inbox-element>
</JBDateInput>
<JBDateInput label='with custom month name' jalaliMonthList={["حَمَل","ثَور","جَوزا","سَرَطان","اَسَد","سُنبُله","میزان","عَقرَب","قَوس","جَدْی","دَلو","حوت"]}></JBDateInput>
<FormalTheme label="more formal look">{ }</FormalTheme>
</SamplesWrapper>

Expand Down
3 changes: 3 additions & 0 deletions docs/src/components/samples/styled.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const SamplesTitle = styled.h2`
export const SamplesWrapper = styled.div`
max-width: 400px;
width: calc(100% - 32px);
display: flex;
flex-direction: column;
gap:1rem;
jb-date-input{
width: 100%;
}
Expand Down

0 comments on commit bdc2c8c

Please sign in to comment.