@open-pioneer/chakra-snippets
Contains packaged Chakra snippets for Open Pioneer Trails applications. These are (mostly) default, unmodified snippets downloaded using the Chakra CLI.
When Chakra's documentation refers to a snippet such as this:
import { PasswordInput, PasswordStrengthMeter } from "@/components/ui/password-input";
Then you can usually use it simply from this package instead without having to install the snippet yourself:
import { PasswordInput, PasswordStrengthMeter } from "@open-pioneer/chakra-snippets/password-input";
If you notice a problem with one of the snippets, or if snippets are missing, feel free to open an issue or a pull request.
Usage
Available Snippets
alert.tsxavatar.tsxblockquote.tsxbreadcrumb.tsxcarousel.tsx: Aria labels have been translated.checkbox-card.tsxcheckbox.tsxclipboard.tsx: Prefer to use this snippet instead of the default Chakra one. The defaultClipboardis not translated.close-button.tsx: Prefer to use this snippet instead of the default Chakra one. The defaultCloseButtonis not translated.combobox.tsxdata-list.tsxempty-state.tsxfield.tsxfloating-panel.tsxinput-group.tsxlink-button.tsxnative-select.tsxnumber-input.tsxpassword-input.tsx: Aria label has been translated.pin-input.tsxprose.tsxqr-code.tsxradio-card.tsxradio.tsxrating.tsxslider.tsxsplitter.tsxstatus.tsxstepper-input.tsxswitch.tsxtag.tsxtags-input.tsxtoggle-tip.tsxtoggle.tsxtooltip.tsx
Differences from Chakra's default snippets
- Aria labels and messages are translated (
Carousel,Clipboard,CloseButtonandPasswordInput). tooltip.tsxkeeps renderingTooltip.Rootwhendisabledis set, so the trigger does not lose focus when the prop toggles.tags-input.tsxadds a type annotation toTagsInputPropsProvider.
License
Apache-2.0 (see LICENSE file)