Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Nov 12, 2023
1 parent 7e725fd commit f845965
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 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('')
const [value, setValue] = useState('* * * * 2')

return <Neocron setCronString={setValue} />
return <Neocron cronString={value} 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 @@ -58,10 +58,11 @@ export default config;

| Prop Name | Description |
|----------------------|--------------------------------------------------------------------|
| `setCronString` | The cron string itself |
| `cronString` | Pass in a default cronString an |
| `setCronString` | A setter to set the cronString |
| `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 |
| `disableExplainerText`| Disables the schedule explainer text |
| `selectorText` | The text in front of the first selector; can be empty |


Expand Down

0 comments on commit f845965

Please sign in to comment.