คอมโพเนนต์ทั้งหมด

Tag

ชิปสำหรับกรอง เลือก หรือลบค่า

ui/feedback.tsxServer safe

ตัวกรอง

pressed ทำให้เป็นปุ่มสลับพร้อม aria-pressed เลือกได้หลายอัน
tsx
<Tag pressed={on.includes("AI")} onClick={() => toggle("AI")} count={12}>AI</Tag>

ลบค่าได้

ปุ่มลบมีชื่อที่บอกว่าลบอะไร
PromptingAgentsNext.jsภาษาญี่ปุ่น
tsx
<Tag onRemove={() => remove("Agents")} removeLabel="นำ Agents ออก">Agents</Tag>

ลิงก์และป้าย

tsx
<Tag href="/tags/thai">ภาษาไทย</Tag>
<Tag>อ่าน 6 นาที</Tag>

Props

PropTypeDefaultคำอธิบาย
pressedboolean-เป็นปุ่มสลับ
onRemove() => void-แสดงปุ่มลบ
removeLabelstring"นำออก"ชื่อปุ่มลบสำหรับโปรแกรมอ่านหน้าจอ
countnumber-จำนวนผลลัพธ์
hrefstring-เป็นลิงก์