-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(atomic-elements): Moved documentation outside of storybook and i…
…nto docs dir & updated / cleaned up the documentation
- Loading branch information
1 parent
272566b
commit 0886cc7
Showing
28 changed files
with
397 additions
and
1,187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
...mic-elements/docs/Usage/accessibility.mdx → ...-elements/docs/Concepts/Accessibility.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Meta } from "@storybook/blocks"; | ||
import { useState } from "react"; | ||
|
||
# Localization | ||
|
||
Atomic Elements components are designed to work with multiple languages and locales. The components are built to be easily localized, and we provide a number of tools to help you do so. | ||
|
||
Several components handle the details of localization for you. For instance: | ||
- The `DatePicker` component will automatically localize the month and day names | ||
- The `NumberInput` component will automatically localize the decimal and thousands separators. | ||
|
||
:::note | ||
|
||
Localization support for components is currently in-progress. If you need better support for localization in a component please [open an issue](https://github.com/atomicjolt/atomic-libs/issues/new) | ||
|
||
::: | ||
|
||
## Customizing the Locale | ||
|
||
By default, the locale is determined by the user's browser settings. You can override this by wrapping your component in a `LocaleProvider` and setting the `locale` prop. | ||
|
||
```jsx | ||
import { LocaleProvider } from "@atomicjolt/atomic-elements"; | ||
|
||
<LocaleProvider locale="en">{/* Your app here */}</LocaleProvider>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.