Skip to content

Commit

Permalink
updates and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Nov 11, 2023
1 parent 6378699 commit dce84d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ import Neocron from 'neocron'
import 'neocron/dist/src/globals.css'

export function App() {
const [value, setValue] = useState('30 5 * * 1,6')
const [value, setValue] = useState('')

return <Neocron defaultValue={value} setCronString={setValue} />
return <Neocron setCronString={setValue} />
}
```
2. Import the shadcn components by updating your tailwind.config.js folder and adding in this path `./node_modules/neocron/dist/src/**/*.{js,css}",` to the content array like so:
Expand Down Expand Up @@ -59,7 +59,6 @@ export default config;
| Prop Name | Description |
|----------------------|--------------------------------------------------------------------|
| `setCronString` | The cron string itself |
| `defaultValue` | If you want to specify a default cron string to start with |
| `disableInput` | Disable the input and only have drop down selectors |
| `disableSelectors` | Disable the selectors and only have the input |
| `disableExplainerText`| Disables the schedule explainer text |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "neocron",
"version": "0.3.7",
"version": "0.3.8",
"private": false,
"main": "dist/src/Neocron.js",
"export": "dist/src/Neocron.js",
Expand Down

0 comments on commit dce84d8

Please sign in to comment.