mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
* refactor(date): updated errorMessage story and modified to import props * docs(date): add errorMessageFunction examples * chore: add changeset * fix: remove unnecessary props * fix: typo
24 lines
376 B
TypeScript
24 lines
376 B
TypeScript
const App = `import {TimeInput} from "@nextui-org/react";
|
|
|
|
export default function App() {
|
|
return (
|
|
<TimeInput
|
|
label="Event Time"
|
|
isInvalid
|
|
errorMessage={(value) => {
|
|
if (value.isInvalid) {
|
|
return "Please enter a valid time";
|
|
}
|
|
}}
|
|
/>
|
|
);
|
|
}`;
|
|
|
|
const react = {
|
|
"/App.jsx": App,
|
|
};
|
|
|
|
export default {
|
|
...react,
|
|
};
|