Components
Sosialoka components are shadcn components with the Sosialoka tokens, radius and status colors built in, for React and Vue.
React components are built on Base UI and installed with shadcn; Vue components are built on Reka UI and installed with shadcn-vue. Both copy the source into your project, so you own the code.
Set up a project
Section titled “Set up a project”Install your product’s theme first, then the components you need. The steps for React and Vue are on Web; a single component installs like this:
npx shadcn@latest add https://design.sosialoka.tech/r/react/button.jsonnpx shadcn-vue@latest add https://design.sosialoka.tech/r/vue/button.jsonFor Flutter, set up the sosialoka_ui package on Flutter and copy the code from each component’s Flutter tab.
Components
Section titled “Components”Actions 3
Forms 16
- InputOne line of text.
- Input GroupAn input with an icon, text or a button attached, such as search or a password.
- TextareaSeveral lines of text.
- LabelNaming a form control.
- FieldA label, a hint and the backend's error around one control.
- CheckboxTurning one option on or off.
- Radio GroupPicking one of a few visible options.
- SwitchA setting that applies right away.
- SliderPicking a value or a range on a track, such as a preview to cut.
- Toggle GroupFilter chips above a list, such as statuses.
- SelectPicking one value from a short list.
- ComboboxPicking from a long list by typing.
- CalendarA month to pick a day from, on the page.
- Date PickerA date field that opens a calendar.
- Input OTPA one-time code in six boxes.
- File UploadDropping or choosing files, with size and progress.
Display 9
- BadgeShowing a status or a short label.
- AlertA message that stays on the page, in a status color.
- CardGrouping content on its own surface.
- CarouselA row of cards to slide through, such as the latest releases.
- ItemA list row on phones and in panels.
- AccordionSections that open one at a time.
- SeparatorA thin line between groups.
- AvatarA person or artist as a picture or initials.
- TimelineWhat happened to a record, newest first.
Navigation 4
Data 2
Overlays 6
Feedback 4
Supporting items
Section titled “Supporting items”Some components install smaller Sosialoka items with them: toggle comes with Toggle Group, pagination with Table, native-select with the Vue Calendar (for its month and year pickers), and React components use the use-mobile hook. They follow the same tokens, so you can also use them on their own.
