Skip to the content

Bushu部首

Choose the parts you can see in a kanji, intersect their matches, and add a radical picker to your page.

Bushu is the Japanese word 部首 for a kanji radical. About the name

Contents

Reference · Radical picker element

definePickerfunction

Defines the default picker or a subclass under a custom name. Safe on a server.

Import it

import { definePicker } from "@johnmorrisdotca/bushu/element";

Also exported from: @johnmorrisdotca/bushu/element/define

Definition

function definePicker(tagName?: string, registry?: CustomElementRegistry | undefined): void

Parameters

NameTypeDescription
tagName (optional)string

The custom tag name; omitted to use the package default.

registry (optional)CustomElementRegistry | undefined

The custom-element registry; omitted outside a browser.

Examples

import { definePicker } from "@johnmorrisdotca/bushu/element";
definePicker();
console.log(typeof definePicker); // function
function

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/bushu 1.1.0.