https://github.com/rintoj/native-x-divider
https://github.com/rintoj/native-x-divider
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/rintoj/native-x-divider
- Owner: rintoj
- Created: 2021-02-20T08:10:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-10T10:28:51.000Z (almost 5 years ago)
- Last Synced: 2025-02-06T06:46:05.496Z (over 1 year ago)
- Language: TypeScript
- Size: 163 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# native-x-divider
[](https://github.com/semantic-release/semantic-release)
This component adds divider between other components
## Install
### Yarn
```sh
yarn add native-x-divider
```
### NPM
```sh
npm install native-x-divider
```
## Usage
```tsx
import { Divider } from 'native-x-divider'
function MyComponent() {
return (
...
...
)
}
```
## API
| Property | Default Value | Usage |
| ------------------ | ------------- | ---------------------------------------------- |
| vertical?: boolean | false | Show vertical divider, (horizontal by default) |
| color?: string | COLOR.DIVIDER | Any color defined by theme provider |
| size?: string | 'normal' | Valid values: 'normal', 'large', 'x-large' |
## Automatic Release
Here is an example of the release type that will be done based on a commit messages:
| Commit message | Release type |
| ------------------- | --------------------- |
| fix: [comment] | Patch Release |
| feat: [comment] | Minor Feature Release |
| perf: [comment] | Major Feature Release |
| doc: [comment] | No Release |
| refactor: [comment] | No Release |
| chore: [comment] | No Release |