@open-pioneer/chakra-snippets
v4.3.0
Published
Contains snippets for Chakra UI.
Keywords
Readme
@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.tsxcheckbox-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.tsxinput-group.tsxlink-button.tsxnative-select.tsxnumber-input.tsxpassword-input.tsxpin-input.tsxprose.tsxqr-code.tsxradio-card.tsxradio.tsxrating.tsxslider.tsxstatus.tsxstepper-input.tsxswitch.tsxtag.tsxtags-input.tsxtoggle-tip.tsxtoggle.tsxtooltip.tsx: Prefer to use this snippet for the shorteropenDelay.
Differences from Chakra's default snippets
- Aria labels and messages are translated (this currently only affects the
CloseButtonand theClipboard). - The
Tooltipcomponent has a shorter defaultopenDelay(500 ms instead of 1000 ms).
License
Apache-2.0 (see LICENSE file)
