https://github.com/rintoj/native-x-spacer
https://github.com/rintoj/native-x-spacer
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rintoj/native-x-spacer
- Owner: rintoj
- Created: 2021-02-04T07:27:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T07:38:42.000Z (over 5 years ago)
- Last Synced: 2025-02-06T18:44:15.455Z (over 1 year ago)
- Language: TypeScript
- Size: 142 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# native-x-spacer
[](https://github.com/semantic-release/semantic-release)
This component adds space between to other components
## Install
### Yarn
```sh
yarn add native-x-spacer
```
### NPM
```sh
npm install native-x-spacer
```
## Usage
```tsx
import { Spacer } from 'native-x-spacer'
function MyComponent() {
return (
...
...
)
}
```
## API
| Property | Default Value | Usage |
| -------------- | ------------- | -------------------------------------------------------------------------------------- |
| fill?: boolean | false | Fill container or available space |
| size?: string | 'normal' | Valid values: 'xx-small', 'x-small', 'small', 'normal', 'large', 'x-large', 'xx-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 |