Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@highoutput/hds-forms
Advanced tools
We aim to build a library of custom ReactJS components that implements our unique UI design conventions. The ReactJS components will be based primarily on Chakra UI components. React Storybook will be used for documentation and testing.
We aim to build a library of custom ReactJS components that implements our unique UI design conventions. The ReactJS components will be based primarily on Chakra UI components. React Storybook will be used for documentation and testing.
To install the package, use:
npm i @highoutput/hds-forms
// feedback-form.tsx
import { chakra } from '@chakra-ui/react';
import { yupResolver } from '@hookform/resolvers/yup';
import * as React from 'react';
import { useForm } from 'react-hook-form';
import * as yup from 'yup';
import { TextAreaField } from './src';
const schema = yup.object({
feedback: yup.string().min(5).max(150).trim(),
});
type Schema = yup.InferType<typeof schema>;
export default function Component() {
const { register, formState, handleSubmit } = useForm<Schema>({
shouldUnregister: true,
shouldFocusError: true,
resolver: yupResolver(schema),
defaultValues: {
feedback: '',
},
});
return (
<chakra.form onSubmit={handleSubmit(function noop() {})}>
<TextAreaField
label="Leave a Feedback"
errorMsg={formState.errors.feedback?.message}
placeholder="Enter comment..."
{...register('feedback')}
/>
<chakra.button type="submit" disabled={formState.isSubmitting}>
Submit
</chakra.button>
</chakra.form>
);
}
FAQs
Unknown package
We found that @highoutput/hds-forms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.