-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b4e64f
commit 68b6085
Showing
21 changed files
with
615 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Lite Version(without antd) | ||
order: 6 | ||
--- | ||
|
||
<code defaultShowCode src="../../../example/src/demos/lite-version.tsx"></code> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
const CracoLessPlugin = require('craco-less'); | ||
|
||
module.exports = { | ||
plugins: [ | ||
{ | ||
plugin: CracoLessPlugin, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { useState } from 'react'; | ||
|
||
import { | ||
ConfigProvider, | ||
CountryPhoneInputValue, | ||
CountryPhoneInput, | ||
} from 'antd-country-phone-input/dist/lite'; | ||
import en from 'world_countries_lists/data/en/world.json'; | ||
// If you're writing styles with less, this could be a starter for you. | ||
import 'rc-select/assets/index.less'; | ||
|
||
const App = () => { | ||
const [value, setValue] = useState<CountryPhoneInputValue>({ short: 'US' }); | ||
|
||
return ( | ||
<ConfigProvider locale={en}> | ||
<div style={{ display: 'flex', alignItems: 'center' }}> | ||
<CountryPhoneInput | ||
style={{ height: 24 }} | ||
selectProps={{ style: { height: 24 } }} | ||
value={value} | ||
onChange={(v) => { | ||
setValue(v); | ||
}} | ||
/> | ||
</div> | ||
</ConfigProvider> | ||
); | ||
}; | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.