Skip to content

Feature/issue 54 #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

### 2.2.0 (September 19, 2021)

- add className for image slider
- `.rsis-container`
- `.rsis-image`

### 2.1.2 (June 16, 2021)

- add 'startIndex' props.
Expand Down
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,25 @@ If You want to see more detail,<br>

- [`example/app.tsx`](https://github.com/kimcoder/react-simple-image-slider/blob/master/example/App.tsx)<br>

# Style customize

- can customize by className with `!important`;

```
.your-app {
.rsis-container {
// do something
}
}

.your-app {
.rsis-image {
background-size: contain !important;
}
}

```

# Development

### directory & source
Expand Down
3 changes: 2 additions & 1 deletion example/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/core/Select';
import SimpleImageSlider from '../dist';
import Input from '@material-ui/core/Input';
import './app.scss';

const IMAGES = [
{ url: 'images/1.jpg' },
Expand Down Expand Up @@ -100,7 +101,7 @@ const App: React.FC = () => {
);

return (
<div style={{ textAlign: 'center' }}>
<div style={{ textAlign: 'center' }} className="root">
<CssBaseline />
<AppBar style={{ position: 'relative', height: 140, textAlign: 'center' }}>
<h1 style={{ marginBottom: 5 }}>React Simple Image Slider Example</h1>
Expand Down
5 changes: 5 additions & 0 deletions example/app.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.root {
.rsis-image {
background-size: cover !important;
}
}
Loading