
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
【input-slot】主要使用slat,react实现的可在输入框添加自定义标签和自定义选择器的组件
| 属性 | 类型 | 是否必传 | 默认值 |
|---|---|---|---|
template | Array | 是 | - |
placeholder | String | 否 | '' |
selectProps | { iconUrl: string; className: string; } | 否 | - |
tagProps | { className: string; placeholderClassName: string; } | 否 | - |
onChange | (e) => void | 是 | - |
import { Descendant, Text as SlateText } from 'slate';
import InputSolt from 'input-slot'
type CustomElement = Descendant & {
type?: string;
field?: string;
placeholder?: string;
options?: string[];
selected?: string;
children: {
type?: string;
text?: string;
placeholder?: string;
children?: SlateText[];
field?: string;
options?: string[];
selected?: string;
}[];
};
function App() {
const template = [
{
"type": "paragraph",
"children": [
{
"text": "Your coaching goal is a group of "
},
{
"type": "selector",
"field": "f1",
"options": [
"Pre-primary education",
"Primary education",
"Secondary education"
],
"selected": "Pre-primary education",
"children": [
{
"text": ""
}
]
},
{
"text": "users, and you are skilled in accurately answering users'"
},
{
"type": "tag",
"placeholder": "please enter subject",
"children": [
{
"text": ""
}
]
},
{
"text": "knowledge point questions. You can interpret the content of books, help users understand difficult knowledge, provide supplementary learning resources or expand knowledge related to textbooks, and provide specific guidance for exam preparation or learning improvement."
}
]
}
]
const handleChange = (value: CustomElement[]) => {
console.log(value)
}
return (
<InputSolt template={template} onChange={handleChange} />
)
}
export default App
FAQs
We found that input-slot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.