shadcn.io is not affiliated with official shadcn/ui
Supplier Application Contact Block for React
A supplier application split in two: a code of conduct as a ruled list at the start, and at the end a form with a formatted tax ID, certification chips and a signature.
Installation
Overview
A supplier application for React with Base UI. A header band sits over a split with a hairline that meets the band's rule with a + mark. At the start, the supplier code of conduct as a numbered, ruled list, and a contact for questions. At the end, the application: the company's legal name, a tax ID that formats itself as 00-0000000 while you type, the kind of supplier, certifications as chips in a tags input with a row of quick-add suggestions, a contact name and email, and a box to accept the code with a signature drawn on a pad or typed. The form comes first in the page order, so on a phone it follows the header and the code follows it. It's built from Tags Input, Signature Pad, Select, Checkbox, Field, Input, Guides, Shine Button and Button.
FAQ
Where does the application go?
Nowhere yet. The submit handler waits 800 milliseconds as a stand-in for a request, then shows the confirmation. Replace that timer in submit with a call to your supplier system: details holds the company, tax ID, type, certifications, contact and signed name, and the pad hands you its image from onDrawEnd through getDataUrl("image/png") (the demo only counts strokes).
How does the tax ID mask work?
Every change keeps digits only, takes the first nine and puts a dash after the second, so typing 123456789 shows 12-3456789 and letters never appear. The field asks for a numeric keyboard on phones, keeps its order in a right-to-left layout, and is checked on submit and when you leave it: nine digits, in that shape. The number in the example is not a real one.
How do the certification chips work?
Type a name and press Enter or a comma, or press one of the quick-add buttons: they are toggles, so pressing a certification that is already a chip removes it. Up to eight are kept. Quick-add buttons report whether they are pressed, and the field is optional.
How can someone who can't draw sign?
The pad takes a pointer or a finger, and it is labelled as a signature pad with a Clear button. Keyboard and screen reader users, and anyone who would rather not draw, type their full name in the field beside it: that field is required whenever the pad is empty, and a drawn signature makes typing optional. The acceptance box is separate and never ticked for you.
How is the supplier type select labelled?
The label above it names the select's button for screen readers, and focus can land on it when the choice is missing.
The trigger takes the id, and the label points to it with htmlFor.
How does it fit on a phone?
Below lg the parts stack in reading order: the header, the application, then the code of conduct under a rule with + marks. Fields go one per row, the quick-add buttons wrap, the button goes full width, and the pad keeps its 160 pixel height. At 320 pixels nothing scrolls sideways.
Related
- Pro
Conflict Check Enquiry Contact
Calls and meetingsA new-matter enquiry for a law firm on a card in card: other parties as chips for a conflict check, urgency, a voicemail switch and an engagement acknowledgement signed on a pad or typed.
- Pro
Patient Intake Steps Contact
Visits and servicesA four-step new-patient intake on a card in card: who you are, history, consent signed on a pad or typed, and a review where each answer has an Edit button.
- Pro
Talk to Sales Contact
Contact formsA talk-to-sales split for a scheduling platform: what happens next as three numbered steps and a band of contact details beside a form that checks itself, shows each problem under its field and confirms in place.
- Pro
Centered Seat-Capped Invite CTA
Urgency and limitsA centred card-in-card CTA with a tags input of teammate emails that stops at the seats a plan has left, ten seat dots that fill as you add chips and a Shine Button that counts the invites.
- Pro
Tax Details Billing
Payment and invoicesBilling address and tax ID in app settings: a form that checks the postal code and tax number against the country, an optional invoice note, and a live preview of the invoice header.
- Pro
Animal Cards Adoption Contact
ApplicationsAn adoption application that starts with four animal cells on shared hairlines and a slider for the hours a home is empty, with a list of the animals that suit you narrowing beside the form.